Comments (2)
The output should look similar to this, yes. :D
You can use pflag.SetAnnotation
against a flag to attribute it to a group:
https://github.com/spf13/pflag/blob/85dd5c8bc61cfa382fecd072378089d4e856579d/flag.go#L497-L511
to annotate a flag against a group alias name. E.g. the annotation group:global
would be the annotation and the "key" would be "global
". When the help command is invoked, the key could be looked up against an index of group names, where "global
" would correspond to the string "Global flags
".
Not sure where group names should be saved though. Perhaps it should be possible via the cmdutil
library to register a new group, e.g. a publicaly exposed API cmdutil.RegisterNewFlagGroup(key, title string)
which saves to a local variable map which is then referenced (in the same vein as cmdutil.RegisterFlag
).
from kraftkit.
For this one, we should have something similar with this?
from kraftkit.
Related Issues (20)
- `kraft fetch` panics immediately HOT 3
- `kraft build` errors with "getting kernel image size: stat: no such file or directory" when both `name` and `target[].name` are set
- `kraft cloud deploy` against Kraftfile panics
- Ability to "tunnel" from localhost to service group or port forward to an instance HOT 1
- `kraft cloud volume log` on a stopped instance blocks instead of returning when the instance has no logs HOT 2
- `kraft cloud deploy`: Memory parameter fails parsing size suffixes, like `M`, `G`, ...
- ``kraft pkg`` does not overwrite existing image HOT 1
- Parse `Library.uk` files
- ``processtree`` parallel by default if some process has children HOT 4
- Add support for ENV and CMD commands in Dockerfiles HOT 1
- Nil pointer panic when running ``kraft pkg``
- Webinstall script: Prompt user to try again on invalid input
- [CLI] Qemu error on long unix socket path while using `kraft run` HOT 4
- Using the App Catalog - HTTP Go Server HOT 1
- Kraftfile cmd not added as kernel argument HOT 4
- `catalog/examples/python3.12-flask3.0-sqlite`: gives: `panic: assignment to entry in nil map` HOT 2
- Implement an OCI garbage collector
- Implement machine `ParseNetwork` string
- Compose add all instances in a service group HOT 1
- Image name warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kraftkit.