Comments (4)
I believe there is a tool that wraps clap for use in bash. Not finding it atm but on mobile.
One challenge with the suggested approach is that the tool can't modify the outside environment. It could dump a script to be source
d or it can wrap a command.
from clap-serde.
will donate 100 USD in crypto for such tool :)
from clap-serde.
I believe there is a tool that wraps clap for use in bash. Not finding it atm but on mobile.
Yeah, I searched various terms, not found yet.
I am ok with Go/C/Zig/AOT compiled bytecode - as long as startup is fast.
I just found that clap seems fits as per clap-serde crate already does half of work.
from clap-serde.
One challenge with the suggested approach is that the tool can't modify the outside environment. It could dump a script to be sourced or it can wrap a command.
yeah, i see.
so it can be something like:
# bash is bad here, but kind of this to work
source < $(clap2nix clap-config.toml $@)
and other option try work:
# so not clear how process reuse shell called it - seems not great until there is 100% portable robust cargo to handle that
clap2nix clap-config.toml $@ -- echo $SOME_PAR
from clap-serde.
Related Issues (20)
- Documenet data model
- Serialize support
- Auto generate docs by serializing App and Arg.
- Use arrays for ordered items HOT 4
- Support for context-specific `App` functions HOT 4
- Update to 3.1
- Add more tests HOT 1
- Make it possible to override argument parameter.
- Env support?
- OsStr support? HOT 1
- Support clap 3.2 HOT 2
- use serde-yaml 0.9
- Provide a way to load directly into a clap app HOT 3
- clap 4 support HOT 1
- Should 'required = false' in arg. allow default value to be undefined? HOT 4
- Deref wrappers to inner type?
- Only expose the Settings you have to HOT 5
- More idiomatic setting names
- Global settins support?
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 clap-serde.