diff --git a/cmd/token.go b/cmd/token.go index 610d095..b7a4238 100644 --- a/cmd/token.go +++ b/cmd/token.go @@ -2,7 +2,7 @@ package cmd import ( "git.ctrlz.es/mgdelacroix/campaigner/config" - + "github.com/spf13/cobra" ) @@ -10,8 +10,8 @@ func TokenSetJiraCmd() *cobra.Command { return &cobra.Command{ Use: "jira", Short: "Sets the value of the jira token", - Args: cobra.ExactArgs(1), - RunE: tokenSetJiraCmdF, + Args: cobra.ExactArgs(1), + RunE: tokenSetJiraCmdF, } } @@ -19,8 +19,8 @@ func TokenSetGithubCmd() *cobra.Command { return &cobra.Command{ Use: "github", Short: "Sets the value of the github token", - Args: cobra.ExactArgs(1), - RunE: tokenSetGithubCmdF, + Args: cobra.ExactArgs(1), + RunE: tokenSetGithubCmdF, } } diff --git a/config/config.go b/config/config.go index 2cc7285..38cc2e3 100644 --- a/config/config.go +++ b/config/config.go @@ -28,7 +28,7 @@ func ReadConfig() (*Config, error) { } if _, err := os.Stat(configPath); err != nil { - return &Config{}, nil + return &Config{}, nil } fileContents, err := ioutil.ReadFile(configPath)