Skip to content

Commit

Permalink
text fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksNV committed Mar 3, 2021
1 parent a565208 commit 49d286a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ var initCmd = &cobra.Command{
Short: "Configure your CLI tool",
Long: GetHeader(),
RunE: func(cmd *cobra.Command, args []string) error {
if err:= checkExistConfigFile(); err != nil {
if err := checkExistConfigFile(); err != nil {
return nil
}

fmt.Print("Enter the API access token for your project: ")
fmt.Print("Enter the API key for your project: ")
if _, err := fmt.Fscan(os.Stdin, &ApiKey); err != nil {
return err
}

fmt.Print("Enter the path to the DirectoryFlag for the localization files: ")
fmt.Print("Enter the path to the directory for the localization files: ")
if _, err := fmt.Fscan(os.Stdin, &Directory); err != nil {
return err
}

fmt.Print("Enter the file FormatFlag for export (json, csv, yaml): ")
fmt.Print("Enter the file format for export (json, csv, yaml): ")
if _, err := fmt.Fscan(os.Stdin, &Format); err != nil {
return err
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"sync"
)


var pullCmd = &cobra.Command{
Use: "pull",
Short: "Download your current translations in various file format.",
Expand All @@ -19,7 +18,6 @@ var pullCmd = &cobra.Command{

Api.SetAuthToken(viper.GetString(ApiKeyFlag))


resp, err := Api.Get("/v1/languages", map[string]string{})
if err != nil {
return err
Expand Down

0 comments on commit 49d286a

Please sign in to comment.