StackOverflow Questions for Tag: go-cobra

Francisco IA Lover
Francisco IA Lover

Reputation: 75

I need to run commands with elevated privileges on my backend

Score: 2

Views: 75

Answers: 2

Read More
Manoj Kommineni
Manoj Kommineni

Reputation: 101

Test cobra cli subcommand flags

Score: 2

Views: 34

Answers: 0

Read More
Matan Wiesner
Matan Wiesner

Reputation: 186

Selective Cobra usage printing: show help only for flag errors, not business logic

Score: 2

Views: 41

Answers: 0

Read More
syb
syb

Reputation: 62

Golang gRPC Client Panics with "invalid memory address" when Connecting to Unix Socket

Score: 1

Views: 42

Answers: 1

Read More
med.b
med.b

Reputation: 485

Passing a variable from cobra command to another

Score: 1

Views: 1378

Answers: 1

Read More
Yaroslav Burnyshev
Yaroslav Burnyshev

Reputation: 27

How works process termination and signal interception in Go + cobra?

Score: 1

Views: 189

Answers: 0

Read More
Matt Welke
Matt Welke

Reputation: 1868

When making a CLI in Go using Cobra, how can I detect whether the user specified a bool flag?

Score: 1

Views: 235

Answers: 1

Read More
thiagowfx
thiagowfx

Reputation: 5760

make flag persistent in one subcommand only

Score: 1

Views: 134

Answers: 1

Read More
syb
syb

Reputation: 62

How to test stream response form a server?

Score: 2

Views: 60

Answers: 1

Read More
syb
syb

Reputation: 62

How to Test for CLI output in go test file using cobra

Score: 0

Views: 32

Answers: 0

Read More
user6715722
user6715722

Reputation:

Cobra init not working,: Command not found

Score: 14

Views: 16251

Answers: 5

Read More
Erlich Bachman
Erlich Bachman

Reputation: 21

Infix commands with cobra-cli

Score: 1

Views: 28

Answers: 0

Read More
Veins Tree
Veins Tree

Reputation: 83

How to set cmd *cobra.Command as a variable in the cobra library?

Score: 0

Views: 1101

Answers: 1

Read More
Archimedes Trajano
Archimedes Trajano

Reputation: 41580

How would I implement in Cobra a sub-command that would accept extra parameters as is?

Score: 0

Views: 26

Answers: 0

Read More
fabelx
fabelx

Reputation: 405

How to pass flags as arguments in cobra (golang)?

Score: 4

Views: 4656

Answers: 2

Read More
Bean Taxi
Bean Taxi

Reputation: 1261

golang+cobra - How to validate individual positional arguments?

Score: 0

Views: 487

Answers: 0

Read More
fzlrhmn
fzlrhmn

Reputation: 461

Golang Cobra subcommands without arguments matching

Score: 7

Views: 6172

Answers: 2

Read More
bharat nc
bharat nc

Reputation: 127

How to extract registered information?

Score: 0

Views: 79

Answers: 1

Read More
sixty4bit
sixty4bit

Reputation: 7956

How to set flags programmatically in tests with Cobra?

Score: 7

Views: 7109

Answers: 1

Read More
DonOfDen
DonOfDen

Reputation: 4108

Golang Cobra command flags in common function not getting values from CLI

Score: 0

Views: 7247

Answers: 3

Read More
PreviousPage 1Next