From 5bdbbd57b7fd4f35fff5e9a33c9496e78c9c13d4 Mon Sep 17 00:00:00 2001 From: xalanq Date: Tue, 9 Apr 2019 21:55:46 +0800 Subject: [PATCH] Fix config add --- README.md | 2 +- cf.go | 2 +- client/statis.go | 2 +- config/add.go | 6 +++--- config/login.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2a749b62..516b9a95 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/xalanq/cf-tool.svg?branch=master)](https://travis-ci.org/xalanq/cf-tool) [![Go Report Card](https://goreportcard.com/badge/github.com/xalanq/cf-tool)](https://goreportcard.com/report/github.com/xalanq/cf-tool) -[![Go Version](https://img.shields.io/badge/go-%3E%3D1.6-green.svg)](https://github.com/golang) +[![Go Version](https://img.shields.io/badge/go-%3E%3D1.12-green.svg)](https://github.com/golang) [![license](https://img.shields.io/badge/license-MIT-%23373737.svg)](https://raw.githubusercontent.com/xalanq/cf-tool/master/LICENSE) Codeforces Tool is written by Golang. **It does not contain any browser driver** and it can be compiled to **a binary file**. diff --git a/cf.go b/cf.go index abf7759a..38f56e72 100644 --- a/cf.go +++ b/cf.go @@ -511,7 +511,7 @@ Examples: have to choose one. cf submit 100 a cf submit 100 a a.cpp - cf list List current contest or problems' infomation. + cf list List current contest or problems' information. cf parse 100 Parse contest 100, all problems, including samples, into ./100/. cf parse 100 a Parse contest 100, problem a, including samples, diff --git a/client/statis.go b/client/statis.go index 8f0ed847..836e5ee7 100644 --- a/client/statis.go +++ b/client/statis.go @@ -9,7 +9,7 @@ import ( "strings" ) -// StatisInfo statis infomation +// StatisInfo statis information type StatisInfo struct { ID string Name string diff --git a/config/add.go b/config/add.go index b07053ba..b4cff2a1 100644 --- a/config/add.go +++ b/config/add.go @@ -50,10 +50,10 @@ func (c *Config) Add() (err error) { suffix := strings.Fields(util.ScanlineTrim()) suffix = append(suffix, strings.Replace(filepath.Ext(path), ".", "", 1)) - color.Cyan("Before script (e.g. g++ $%full%$ -o $%name%$.exe -std=c++11), empty is ok: ") + color.Cyan("Before script (e.g. g++ $%full%$ -o $%file%$.exe -std=c++11), empty is ok: ") beforeScript := util.ScanlineTrim() - color.Cyan("Script (e.g. ./$%name%$.exe): ") + color.Cyan("Script (e.g. ./$%file%$.exe): ") script := "" for { script = util.ScanlineTrim() @@ -63,7 +63,7 @@ func (c *Config) Add() (err error) { color.Red("script can not be empty. Please input again: ") } - color.Cyan("After script (e.g. rm $%name%$.exe): ") + color.Cyan("After script (e.g. rm $%file%$.exe): ") afterScript := util.ScanlineTrim() c.Template = append(c.Template, CodeTemplate{ diff --git a/config/login.go b/config/login.go index e7918ca5..cbf1c30c 100644 --- a/config/login.go +++ b/config/login.go @@ -70,7 +70,7 @@ func (c *Config) DecryptPassword() (string, error) { return decrypt(c.Username, c.Password) } -// Login configurate +// Login configure username and password func (c *Config) Login(path string) (err error) { color.Cyan("Config username/email and password(encrypt)")