StackOverflow Questions for Tag: go-cobra

szz
szz

Reputation: 31

How to merge flags, defined in other package, into cobra.flags?

Score: 3

Views: 898

Answers: 1

Read More
vercingortix
vercingortix

Reputation: 249

How to unit test a Cobra CLI command which requires internal mocks?

Score: 3

Views: 2554

Answers: 1

Read More
Petr
Petr

Reputation: 508

How to call SetOut() on subcommands in Cobra?

Score: 2

Views: 2443

Answers: 1

Read More
Parth Wadhwa
Parth Wadhwa

Reputation: 687

Unable to unmarshal using viper

Score: 4

Views: 10238

Answers: 1

Read More
null
null

Reputation: 145

How to implement multiple options with cobra

Score: 0

Views: 1839

Answers: 1

Read More
Joff
Joff

Reputation: 12187

Why is Cobra not reading my configuration file?

Score: 8

Views: 10577

Answers: 4

Read More
Naftuli Kay
Naftuli Kay

Reputation: 91800

Casting pflags.Flag.Value as Arbitrary Types

Score: 2

Views: 1070

Answers: 1

Read More
Naftuli Kay
Naftuli Kay

Reputation: 91800

Named Positional Arguments in Cobra

Score: 5

Views: 9994

Answers: 1

Read More
simak92
simak92

Reputation: 11

Cobra autocomplete without space

Score: 1

Views: 1056

Answers: 1

Read More
user2541436
user2541436

Reputation: 127

Golang cobra CLI - get the currentl running subcommand

Score: 3

Views: 2363

Answers: 1

Read More
Cameron Milton
Cameron Milton

Reputation: 21

How to structure sub sub commands with golang cobra?

Score: 2

Views: 1003

Answers: 1

Read More
Christopher
Christopher

Reputation: 283

How to invoke help by default for a Cobra Subcommand?

Score: 28

Views: 11708

Answers: 3

Read More
pkaramol
pkaramol

Reputation: 19402

Determine if flags were actually passed in (sub)command invocation in golang's cobra/viper

Score: 2

Views: 3371

Answers: 1

Read More
Jibi Makkar
Jibi Makkar

Reputation: 73

Kubectl like output format for my cobra project

Score: 2

Views: 1483

Answers: 1

Read More
tortuga
tortuga

Reputation: 757

How can I provide JSON array as argument to cobra cli

Score: 2

Views: 3740

Answers: 1

Read More
jtee
jtee

Reputation: 79

Link another Golang Cobra CLI to current Golang Cobra CLI

Score: 0

Views: 510

Answers: 1

Read More
Naushad
Naushad

Reputation: 11

Unable to initialize a new package using cobra init --pkg-name demo command in go

Score: 1

Views: 291

Answers: 1

Read More
larsks
larsks

Reputation: 312400

Providing context to Cobra subcommands without using package globals?

Score: 5

Views: 6806

Answers: 1

Read More
Thomas Jay Rush
Thomas Jay Rush

Reputation: 400

How can I add a --file (run multiple commands in a file) option to GoLang Cobra app

Score: 1

Views: 269

Answers: 0

Read More
crileroro
crileroro

Reputation: 31

Handle Logrus and Cobra CLI in Golang

Score: 1

Views: 2108

Answers: 0

Read More
PreviousPage 2Next