Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Nov 18, 2019
1 parent 7586f83 commit 23baeb6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ var launchCmd = &cobra.Command{
os.Exit(1)
}

trackCommand := []string{exe, "track"}
if lang == "" {
lang = os.Getenv("LANG")
}
o, err := options.NewOptions(
pid,
name,
Expand All @@ -69,6 +71,7 @@ var launchCmd = &cobra.Command{
os.Exit(1)
}

trackCommand := []string{exe, "track"}
trackCommand = append(trackCommand, o.Get()...)

envs := os.Environ()
Expand Down Expand Up @@ -102,5 +105,5 @@ func init() {
launchCmd.Flags().IntVarP(&timeout, "timeout", "", 60*60*24, "Timeout of tracking (seconds)")
launchCmd.Flags().StringVarP(&slackChannel, "slack-channel", "", "", "Slack channel to notify")
launchCmd.Flags().StringVarP(&slackMention, "slack-mention", "", "", "Slack mention")
launchCmd.Flags().StringVarP(&lang, "lang", "", os.Getenv("LANG"), "Language")
launchCmd.Flags().StringVarP(&lang, "lang", "", "", "Language")
}

0 comments on commit 23baeb6

Please sign in to comment.