Skip to content

Commit

Permalink
version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cshuaimin committed Nov 24, 2018
1 parent 6cbcaa7 commit e813a29
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 25 deletions.
62 changes: 38 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
> A productive cli tool to enjoy [UVa Online Judge](https://uva.onlinejudge.org)!
## A productive cli tool to enjoy [UVa Online Judge](https://uva.onlinejudge.org)!

A very effficient way to fight questions:
- Print the problem description in terminal with a format like man(1).
- Compile and test the code locally, use test cases from udebug.com.
- Compile and test the code locally, using test cases from udebug.com.
- Use a special diff algorithm to compare the output with the answer.
- Finally, you can submit the code to online judge and get result.

Expand All @@ -24,28 +24,42 @@ A very effficient way to fight questions:
$ go get github.com/cshuaimin/uva
```

## Quick start

- Login with your UVa account:

```sh
$ uva user -l
```

- Show description:

```sh
$ uva show <ID>
```

- Run tests:
## Usage
```console
$ uva -h
NAME:
uva - A cli tool to enjoy uva oj!

USAGE:
uva [command]

VERSION:
0.3.0

COMMANDS:
user manage account
show show problem by id
touch create source file
submit submit code
test test code locally
dump dump test cases to files
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```

```sh
$ uva test <file>
```
```console
$ uva test -h
NAME:
uva test - test code locally

- Submit it!
USAGE:
uva test FILE

```sh
$ uva submit <file>
```
OPTIONS:
-i value input file
-a value answer file
-b compare each line of output with the answer byte-by-byte
```
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func main() {
app := cli.NewApp()
app.Usage = "A cli tool to enjoy uva oj!"
app.UsageText = "uva [command]"
app.Version = "0.2.0"
app.Version = "0.3.0"

loadCookies := func(c *cli.Context) error {
loadLoginInfo()
Expand Down

0 comments on commit e813a29

Please sign in to comment.