Skip to content

Commit

Permalink
Set ENV vars for the current command
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Mar 1, 2019
1 parent 74ee7f3 commit 4ccef3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command_subcommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func cmdSubcommand(c *cli.Context) error {
}

executable = append(executable, os.Args[2:]...)
os.Setenv("AKAMAI_CLI_COMMAND", commandName)
os.Setenv("AKAMAI_CLI_COMMAND_VERSION", currentCmd.Version)
trackEvent("exec", commandName, currentCmd.Version)
return passthruCommand(executable)
}

0 comments on commit 4ccef3d

Please sign in to comment.