WIP: updated log level on some log entries and added environment variable expansion for command line and its arguments
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
"gitea.suyono.dev/suyono/wingmate"
|
||||
"gitea.suyono.dev/suyono/wingmate/cmd/cli"
|
||||
wmenv "gitea.suyono.dev/suyono/wingmate/task/env"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
"golang.org/x/sys/unix"
|
||||
@@ -74,7 +75,7 @@ func main() {
|
||||
if selfArgs, childArgs, err = cli.SplitArgs(os.Args); err != nil {
|
||||
selfArgs = os.Args
|
||||
}
|
||||
app.childArgs = childArgs
|
||||
app.childArgs = wmenv.ExpandEnv(os.Environ(), childArgs)
|
||||
app.err = err
|
||||
|
||||
rootCmd.SetArgs(selfArgs[1:])
|
||||
|
||||
Reference in New Issue
Block a user