diff --git a/README.md b/README.md index c3bad72..ebb5766 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/cmd/fetch.go b/cmd/fetch.go index 62ddd41..b191d2c 100644 --- a/cmd/fetch.go +++ b/cmd/fetch.go @@ -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}) diff --git a/cmd/root.go b/cmd/root.go index 8e441d2..744f71c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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: diff --git a/doc/wsoffcli_fetch.md b/doc/wsoffcli_fetch.md index 8da9209..5801a0a 100644 --- a/doc/wsoffcli_fetch.md +++ b/doc/wsoffcli_fetch.md @@ -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]