I do, but still end up using no framework. Peter's commitment to reasoned simplicity resonates with me though so I really should look at this again, so thanks for the reminder.
-
-
-
cool. I've used most other frameworks, but found them bulky and API surface way too large, i.e., tries to do too much. on the flip side, at least for me, starting with a raw func main + a few flags + time ... the CLI grows and becomes hard to maintain as features grow.
- Još 2 druga odgovora
Novi razgovor -
-
-
Very nice, this looks super similar to a ~100 line snippet I regularly copy into my projects called commander (even more minimal than a dependency) which uses the std `flag` package and supports nested nested CLIs mirroring the `go` command.
-
I will probably publish this somewhere later with a better explanation, but we use it in the
@srcgraph CLI here: https://github.com/sourcegraph/src-cli/blob/master/cmd/src/cmd.go#L1-L125 … And an example of how it gets used: https://sourcegraph.com/github.com/sourcegraph/src-cli@36c0cf2c99495570006c913b4493fd06da02c931/-/blob/cmd/src/version.go#L44-53 … - Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.