-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#25: Stub out command files for core apis
- Loading branch information
Showing
14 changed files
with
609 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const {Command} = require('@oclif/command'); | ||
|
||
class InstallCommand extends Command { | ||
static description = 'install things'; | ||
|
||
static usage = 'usage'; | ||
|
||
static aliases = ['install']; | ||
|
||
static examples = []; | ||
|
||
async run() { | ||
const {flags} = this.parse(InstallCommand); | ||
const name = flags.name || 'world'; | ||
this.log(`goodbye ${name} from ./src/commands/hello.js`); | ||
} | ||
} | ||
|
||
module.exports = InstallCommand; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const {Command, flags} = require('@oclif/command'); | ||
|
||
class UninstallCommand extends Command { | ||
// static _base = 'thing'; | ||
// static id = 'thing'; | ||
// static title = 'title'; | ||
|
||
static description = `Describe the command here | ||
Extra documentation goes here | ||
`; | ||
// static hidden - false; | ||
|
||
static usage = 'stuff'; | ||
|
||
static help = 'stuff'; | ||
|
||
// static aliases = ['uninstall']; | ||
|
||
// static strict = false; | ||
// static parse = true; | ||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
// static args | ||
// static plugin | ||
// static examples | ||
// static parserOptions | ||
// static | ||
|
||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
async run() { | ||
const {flags} = this.parse(UninstallCommand); | ||
const name = flags.name || 'world'; | ||
this.log(`hello ${name} from ./src/commands/hello.js`); | ||
} | ||
} | ||
|
||
module.exports = UninstallCommand; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const {Command, flags} = require('@oclif/command'); | ||
|
||
class UninstallCommand extends Command { | ||
// static _base = 'thing'; | ||
// static id = 'thing'; | ||
// static title = 'title'; | ||
|
||
static description = `Describe the command here | ||
Extra documentation goes here | ||
`; | ||
// static hidden - false; | ||
|
||
static usage = 'stuff'; | ||
|
||
static help = 'stuff'; | ||
|
||
static aliases = ['uninstall']; | ||
|
||
// static strict = false; | ||
// static parse = true; | ||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
// static args | ||
// static plugin | ||
// static examples | ||
// static parserOptions | ||
// static | ||
|
||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
async run() { | ||
const {flags} = this.parse(UninstallCommand); | ||
const name = flags.name || 'world'; | ||
this.log(`hello ${name} from ./src/commands/hello.js`); | ||
} | ||
} | ||
|
||
module.exports = UninstallCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const {Command, flags} = require('@oclif/command'); | ||
|
||
class UninstallCommand extends Command { | ||
// static _base = 'thing'; | ||
// static id = 'thing'; | ||
// static title = 'title'; | ||
|
||
static description = `Describe the command here | ||
Extra documentation goes here | ||
`; | ||
// static hidden - false; | ||
|
||
static usage = 'stuff'; | ||
|
||
static help = 'stuff'; | ||
|
||
static aliases = ['uninstall']; | ||
|
||
// static strict = false; | ||
// static parse = true; | ||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
// static args | ||
// static plugin | ||
// static examples | ||
// static parserOptions | ||
// static | ||
|
||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
async run() { | ||
const {flags} = this.parse(UninstallCommand); | ||
const name = flags.name || 'world'; | ||
this.log(`hello ${name} from ./src/commands/hello.js`); | ||
} | ||
} | ||
|
||
module.exports = UninstallCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const {Command, flags} = require('@oclif/command'); | ||
|
||
class UninstallCommand extends Command { | ||
// static _base = 'thing'; | ||
// static id = 'thing'; | ||
// static title = 'title'; | ||
|
||
static description = `Describe the command here | ||
Extra documentation goes here | ||
`; | ||
// static hidden - false; | ||
|
||
static usage = 'stuff'; | ||
|
||
static help = 'stuff'; | ||
|
||
static aliases = ['uninstall']; | ||
|
||
// static strict = false; | ||
// static parse = true; | ||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
// static args | ||
// static plugin | ||
// static examples | ||
// static parserOptions | ||
// static | ||
|
||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
async run() { | ||
const {flags} = this.parse(UninstallCommand); | ||
const name = flags.name || 'world'; | ||
this.log(`hello ${name} from ./src/commands/hello.js`); | ||
} | ||
} | ||
|
||
module.exports = UninstallCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const {Command, flags} = require('@oclif/command'); | ||
|
||
class UninstallCommand extends Command { | ||
// static _base = 'thing'; | ||
// static id = 'thing'; | ||
// static title = 'title'; | ||
|
||
static description = `Describe the command here | ||
Extra documentation goes here | ||
`; | ||
// static hidden - false; | ||
|
||
static usage = 'stuff'; | ||
|
||
static help = 'stuff'; | ||
|
||
static aliases = ['uninstall']; | ||
|
||
// static strict = false; | ||
// static parse = true; | ||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
// static args | ||
// static plugin | ||
// static examples | ||
// static parserOptions | ||
// static | ||
|
||
static flags = { | ||
name: flags.string({char: 'n', description: 'name to print'}), | ||
} | ||
|
||
async run() { | ||
const {flags} = this.parse(UninstallCommand); | ||
const name = flags.name || 'world'; | ||
this.log(`hello ${name} from ./src/commands/hello.js`); | ||
} | ||
} | ||
|
||
module.exports = UninstallCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.