Skip to content

Commit

Permalink
Fix to show context format when running
Browse files Browse the repository at this point in the history
  • Loading branch information
k-awata committed Apr 6, 2023
1 parent a17b76e commit 6c829aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ var openCmd = &cobra.Command{
SetMacro(viper.GetString("context.macro"))

cobra.CheckErr(evars.Save())
cmd.Println("Module:", viper.GetString("context.module"))
cmd.Println("TTY Mode:", viper.GetBool("context.tty"))
cmd.Println("Project:", viper.GetString("context.project"))
cmd.Println("User:", viper.GetString("context.user"))
cmd.Println("MDB:", viper.GetString("context.mdb"))
cmd.Println("Macro:", viper.GetString("context.macro"))
cmd.Println("Running app " + args[0] + "...")
cmd.Println(" Module:", viper.GetString("context.module"))
cmd.Println(" TTY Mode:", viper.GetBool("context.tty"))
cmd.Println(" Project:", viper.GetString("context.project"))
cmd.Println(" User:", viper.GetString("context.user"))
cmd.Println(" MDB:", viper.GetString("context.mdb"))
cmd.Println(" Macro:", viper.GetString("context.macro"))
cobra.CheckErr(lnchr.Run())
},
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
Expand Down

0 comments on commit 6c829aa

Please sign in to comment.