Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Akenaide committed May 10, 2019
1 parent 7f45e81 commit 99f550d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
## wsoffcli [![Build Status](https://travis-ci.com/Akenaide/wsoffcli.svg?branch=master)](https://travis-ci.com/Akenaide/wsoffcli)
## wsoffcli

Collect data from https://ws-tcg.com/

### Synopsis

Collect data from https://ws-tcg.com/.

Create a json file for each card with most information.

Example:
'wsoffcli fetch -n IMC' will fetch all cards with a code starting with 'IMC'

If you want more than one use '##' as seperator like 'wsoffcli fetch -n BD##IM'

'--serie' use a hidden number in the official site, this number is increment for each new set (e.g Kadokawa is number 259, Goblin 260 ...)


### Options
Expand All @@ -19,7 +27,7 @@ Create a json file for each card with most information.

### SEE ALSO

* [wsoffcli fetch](doc/wsoffcli_fetch.md) - Fetch
* [wsoffcli fetch](doc/wsoffcli_fetch.md) - Fetch cards
* [wsoffcli gendoc](doc/wsoffcli_gendoc.md) - Generate doc with Cobra

###### Auto generated by spf13/cobra on 10-May-2019
6 changes: 4 additions & 2 deletions cmd/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ import (
// fetchCmd represents the fetch command
var fetchCmd = &cobra.Command{
Use: "fetch",
Short: "Fetch",
Long: `Fetch`,
Short: "Fetch cards",
Long: `Fetch cards
Use global switches to specify the set, by default it will fetch all sets.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("fetch called")
jar, err := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
Expand Down
8 changes: 8 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@ var rootCmd = &cobra.Command{
Use: "wsoffcli",
Short: "Collect data from https://ws-tcg.com/",
Long: `Collect data from https://ws-tcg.com/.
Create a json file for each card with most information.
Example:
'wsoffcli fetch -n IMC' will fetch all cards with a code starting with 'IMC'
If you want more than one use '##' as seperator like 'wsoffcli fetch -n BD##IM'
'--serie' use a hidden number in the official site, this number is increment for each new set (e.g Kadokawa is number 259, Goblin 260 ...)
`,
// Uncomment the following line if your bare application
// has an action associated with it:
Expand Down
6 changes: 4 additions & 2 deletions doc/wsoffcli_fetch.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
## wsoffcli fetch

Fetch
Fetch cards

### Synopsis

Fetch
Fetch cards

Use global switches to specify the set, by default it will fetch all sets.

```
wsoffcli fetch [flags]
Expand Down

0 comments on commit 99f550d

Please sign in to comment.