Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
llitfkitfk committed Apr 14, 2017
1 parent df740f8 commit b356262
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions cmd/excelToJson.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ import (
// excelToJsonCmd represents the excelToJson command
var excelToJsonCmd = &cobra.Command{
Use: "excelToJson",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Short: "cover Google Sheets to JSON",
Long: `Convert Google Sheets to JSON
Need Three flags:
-i ID of input Google Sheets
-s Ranges of output Google Sheets data store (e.g.: A1:A100 or B1:B100) (need use twice one for key, one for value)
-o JSON output file
-f google_api_client_secret.json file`,
Run: func(cmd *cobra.Command, args []string) {
client = initClient()
service, err := sheets.New(client)
Expand Down
2 changes: 1 addition & 1 deletion cmd/jsonToExcel.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Need Three flags:
-i ID of output Google Sheets
-r Range of output Google Sheets data store (e.g.: A1 or A1:B100)
-j JSON input file
`,
-f google_api_client_secret.json file`,
Run: func(cmd *cobra.Command, args []string) {

client = initClient()
Expand Down

0 comments on commit b356262

Please sign in to comment.