From b356262956b43abad6a5bb5066ec286a433db5e4 Mon Sep 17 00:00:00 2001 From: llitfkitfk Date: Fri, 14 Apr 2017 17:54:58 +0800 Subject: [PATCH] update --- cmd/excelToJson.go | 14 +++++++------- cmd/jsonToExcel.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/excelToJson.go b/cmd/excelToJson.go index 77c4625..96b55d6 100644 --- a/cmd/excelToJson.go +++ b/cmd/excelToJson.go @@ -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) diff --git a/cmd/jsonToExcel.go b/cmd/jsonToExcel.go index 052ecad..e2e7ee3 100644 --- a/cmd/jsonToExcel.go +++ b/cmd/jsonToExcel.go @@ -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()