Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Fix config add
Browse files Browse the repository at this point in the history
  • Loading branch information
xalanq committed Apr 9, 2019
1 parent 76082b2 commit 5bdbbd5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.
Expand Down
2 changes: 1 addition & 1 deletion cf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <contest-id> problems' infomation.
cf list List current contest or <contest-id> problems' information.
cf parse 100 Parse contest 100, all problems, including samples,
into ./100/<problem-id>.
cf parse 100 a Parse contest 100, problem a, including samples,
Expand Down
2 changes: 1 addition & 1 deletion client/statis.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
)

// StatisInfo statis infomation
// StatisInfo statis information
type StatisInfo struct {
ID string
Name string
Expand Down
6 changes: 3 additions & 3 deletions config/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion config/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")

Expand Down

0 comments on commit 5bdbbd5

Please sign in to comment.