GithubHelp home page GithubHelp logo

Comments (12)

tj avatar tj commented on May 17, 2024 1

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.

balupton avatar balupton commented on May 17, 2024

Possibly related to #1

from commander.js.

tj avatar tj commented on May 17, 2024

yup this is a really old uncompleted thing but the "infrastructure" is there

from commander.js.

serby avatar serby commented on May 17, 2024

+1 this would be handy

from commander.js.

goto100 avatar goto100 commented on May 17, 2024

this is useful, like "git remote". "git remote add", "git remote rm"

from commander.js.

tj avatar tj commented on May 17, 2024

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.

Grigore147 avatar Grigore147 commented on May 17, 2024

Did anyone work on this? Would be great to have it working like this.

from commander.js.

Grigore147 avatar Grigore147 commented on May 17, 2024

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.

tj avatar tj commented on May 17, 2024

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.

vjpr avatar vjpr commented on May 17, 2024

+1

I would like to be able to write app test server app test all app server, etc.

from commander.js.

diosney avatar diosney commented on May 17, 2024

+1 Any updates on this?

from commander.js.

tj avatar tj commented on May 17, 2024

closing because git-style is a lot more elegant than the .action stuff from before

from commander.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.