npm.io
1.0.0-alpha.30 • Published 8 years ago

@orbital/core

Licence
—
Version
1.0.0-alpha.30
Deps
5
Size
94 kB
Vulns
0
Weekly
0

Orbital

Orbital is the CLI framework from the future. Using powerful features from TypeScript, like metadata and decorators, there is no limit to what you can create with Orbital.

Features

  • Support for options and parameters (arguments)
  • Command and option aliases
  • Automatic help generation out of the box
  • Git-style subcommands

Example

Here's an example of the simplest CLI you can build with Orbital.

import { CLI, Command, OrbitalFactory } from '@orbital/core';

@Command({
    name: 'hello'
})
export class HelloCommand {
    execute() {
        console.log('Hello, World!');
    }
}

@CLI({
    declarations: [
        HelloCommand
    ]
})
export class HelloCLI { }

OrbitalFactory
    .bootstrap(HelloCLI)
    .execute(process.argv)