dearchap

Results 296 comments of dearchap
trafficstars

@klueska Are you able to test with latest code ? There have been lots of fixes in that area since this issue was raised.

@asahasrabuddhe @meatballhat I'm closing this PR as we dont want to proceed in this direction. We can have a separate PR for subpackage

@lburgazzoli I added two lines to your code ``` package main import ( "fmt" "log" "os" "github.com/urfave/cli/v2" "github.com/urfave/cli/v2/altsrc" ) func main() { var kubeconf string var namespace string var dependencies...

@lburgazzoli This would work ``` app := &cli.App{ Name: "kamel", Usage: "kamel", EnableBashCompletion: true, Before: altsrc.InitInputSourceWithContext(flags, altsrc.NewYamlSourceFromFlagFunc("kamelconfig")), Flags: flags, Commands: []*cli.Command{ { Name: "run", Usage: "run", Flags: runFlags, Before: altsrc.InitInputSourceWithContext(runFlags,...

The flag is searched up the context chain so it is not strictly necessary to specify the root node, unless you want the search to stop at current level

Duplicate of #424

I verified that this has been fixed in v2 using following code https://github.com/coilysiren/testing-cli/blob/urfave/cli/issues/783-v2-repro/main.go ``` $ go run main.go c.App.Name for app.Action is myprogramname $ go run main.go foo c.App.Name for...

@ddouglas Can you check if latest release solves this issue for you ?