Skip to content

issues Search Results · repo:spf13/cobra language:Go

Filter by

1k results
 (59 ms)

1k results

inspf13/cobra (press backspace or delete to remove)

I would like to have completion cycling even if the argument is selected Lets say I have arg1, arg2, arg3, and I choose the first arg1 and press enter. Right now with my current setup I cant back to cycling ...
  • moshe5745
  • 3
  • Opened 
    19 hours ago
  • #2260

I m trying to workaround https://github.com/spf13/cobra/issues/1877 by inspecting os.Args by hand. In some cases cobra accidentally inserts -- into os.Args. Minimal example: package main import ( ...
  • jonathan-conder
  • Opened 
    yesterday
  • #2257

https://github.com/inconshreveable/mousetrap it has direct dependency cobra package. This mousetrap package is not get updated since long time. Is there any plan to update cobra package so that this package ...
  • Supriya-Khedkar87
  • 1
  • Opened 
    5 days ago
  • #2255

You would like to add a shorthand to an option. How would you add a shorthand to an option (e.g., f in --flag)?
  • switchupcb
  • 1
  • Opened 
    6 days ago
  • #2254

You would like to place help command at the top of the Available Commands list. Available Commands: ex short description of ex help Help about any command yz short description of ...
  • switchupcb
  • 1
  • Opened 
    6 days ago
  • #2252

Expected behavior: command flags should be allowed in front of the commands, even without =true. Actual behavior: persistent boolean flags put in front of the command are not recognized. func Test_flagsOrder(t ...
  • parametalol
  • Opened 
    6 days ago
  • #2251

You would like to use one dash (e.g., -flag) for a flag, rather than two (e.g., --flag). How do you use one - instead of two --? Otherwise, you receive Error: unknown shorthand flag: f in -flag.
  • switchupcb
  • 1
  • Opened 
    6 days ago
  • #2250

When I test Cobra command, I do this: cmd := NewCmdStatus(cmdutils.NewFactory()) t.Run( no repo , func(t *testing.T) { err := cmd.Execute() assert.Error(t, ...
  • abitrolly
  • 3
  • Opened 
    7 days ago
  • #2249

I have a CLI app that is pretty simple. It s got a Main (Root) command that should handle most invocations. I have one sub-command that will be used far less. Here are some example invocations for context ...
  • dev-ns8
  • 3
  • Opened 
    8 days ago
  • #2247

For some use cases of command line completion it would be helpful if there was a means to override the default behaviour of generating the completion list for flags. # when hitting tab to generate command ...
  • fnickels
  • 2
  • Opened 
    9 days ago
  • #2243
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub