Comments (12)
it's pretty simple if you're going with the executable-CMD
approach:
var bin = 'component-' + cmd;
var proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
from commander.js.
Possibly related to #1
from commander.js.
yup this is a really old uncompleted thing but the "infrastructure" is there
from commander.js.
+1 this would be handy
from commander.js.
this is useful, like "git remote". "git remote add", "git remote rm"
from commander.js.
I had to implement this for component(1), and honestly I think it's cleaner to just do it the git way, via which
and execute component-install
, component-create
etc. However that being said it would be possibly nice to build that into commander or something more convenient
from commander.js.
Did anyone work on this? Would be great to have it working like this.
from commander.js.
Hmm, sorry but I do not understand what you mean with this.
How this will allow something for ex.: app module install auth
. So we could get it like so:
App.command('module install [name]')
.description('install application module')
.action(function(name) {
//...
});
from commander.js.
for example component install something
invokes component-install something
, this is how git and many others support commands, it's much more elegant IMO
from commander.js.
+1
I would like to be able to write app test server
app test all
app server
, etc.
from commander.js.
+1 Any updates on this?
from commander.js.
closing because git-style is a lot more elegant than the .action stuff from before
from commander.js.
Related Issues (20)
- Rewrite error message log function HOT 2
- return command action result HOT 3
- Double Dash Feature HOT 5
- Missing `this` type for `action` HOT 3
- Hey ! My project got crashed.. please check description for more detail HOT 2
- Feature/multiple usages HOT 14
- The root `--help` doesn't respect `.usage()` in a command HOT 2
- [Bug] Unexpected arguments ignored HOT 2
- Commander v12 breaks implicit negative flag. HOT 1
- Dev: purging stale release branches HOT 1
- 115 HOT 1
- Add support for option to output object HOT 8
- Handle the case when node called with the "-e" argument HOT 3
- Compatible with deno HOT 2
- Neutral JavaScript runtime support (Deno, Bun, etc) HOT 11
- Allow option to conflict with the negation of another option. HOT 5
- When use .command("dtsgen <files>")๏ผthis params files in macOS and Windows is errors caused by differences HOT 3
- Requiring via `<` does not work. HOT 4
- how to use the ESM module to import and export ? HOT 1
- Option.fullDescription() does not exist 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 commander.js.