Skip to content

Commit

Permalink
🚿 cleanup comments and documents
Browse files Browse the repository at this point in the history
  • Loading branch information
budougumi0617 committed Sep 29, 2020
1 parent 5481439 commit c95b33a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,33 @@ export LEETCODE_TOKEN=${csrftoken}
## Usage

```
leetgode -h
Usage of leetgode:
SUBCOMMANDS:
data Manage Cache [aliases: d]
edit Edit question by id [aliases: e]
exec Submit solution [aliases: x]
list List problems [aliases: l]
pick Pick a problem [aliases: p]
stat Show simple chart about submissions [aliases: s]
test Edit question by id [aliases: t]
help Prints this message or the help of the given subcommand(s)
leetgode help
Usage: leetgode is leetcode cli for gophers.
SubCommands:
exec Submit solution
generate Generate the skeleton code with the test file by id
help Help shows usages
list List problems
pick Pick a problem by id
test Test solution
```

## Install
You can download binary from [release page](https://github.com/budougumi0617/leetgode/releases) and place it in $PATH directory.

### go get
```
go get -u https://github.com/budougumi0617/leetgode/cmd/leetgode
```

### macOS
If you want to install on macOS, you can use Homebrew.
~~If you want to install on macOS, you can use Homebrew.~~
```
brew install budougumi0617/tap/leetgode
```

now setting...

## Contribution
1. Fork ([https://github.com/budougumi0617/leetgode/fork](https://github.com/budougumi0617/leetgode/fork))
Expand Down
2 changes: 0 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ query getQuestionDetail($titleSlug: String!) {
return &q, nil
}

// TODO: submitメソッドをつくる for exec

// curl https://leetcode.com/api/problems/algorithms/
func (lc *LeetCode) GetProblems(ctx context.Context) (*ProblemsResult, error) {
cli := http.Client{
Expand Down
3 changes: 2 additions & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var CmdMap = map[CmdName]Cmd{
}

func buildPath(id, slug string) string {
format := "tmp/%s.%s.go"
// TODO: changeable directory
format := "%s.%s.go"
return fmt.Sprintf(format, id, slug)
}

0 comments on commit c95b33a

Please sign in to comment.