cli skeleton
This commit is contained in:
parent
39dd4bd7ca
commit
d95c3e2bb5
1 changed files with 31 additions and 1 deletions
32
index.ts
32
index.ts
|
@ -1,4 +1,34 @@
|
|||
import { Configuration, WebsiteApi } from "guichet-sdk-ts";
|
||||
import { program } from "commander";
|
||||
|
||||
program
|
||||
.name('dxfl')
|
||||
.description('Deuxfleurs CLI tool')
|
||||
.version('0.1.0');
|
||||
|
||||
program.command('login')
|
||||
.description('Link your Deuxfleurs account with this tool.')
|
||||
.argument('<string>', 'your account username')
|
||||
.action((_str, _options) => {
|
||||
console.log("todo login");
|
||||
});
|
||||
|
||||
program.command('list')
|
||||
.description('List all your websites')
|
||||
.argument('<username>', 'your account username')
|
||||
.action((_str, _options) => {
|
||||
console.log("todo list");
|
||||
});
|
||||
|
||||
program.command('deploy')
|
||||
.description('Deploy your website')
|
||||
.argument('<vhost>', 'selected vhost')
|
||||
.argument('<local_folder>', 'your local folder')
|
||||
.action((_str, _options) => {
|
||||
console.log("todo deploy");
|
||||
});
|
||||
|
||||
program.parse();
|
||||
|
||||
const conf = new Configuration({
|
||||
username: "USER",
|
||||
|
@ -11,4 +41,4 @@ async function main() {
|
|||
console.log(wlist);
|
||||
}
|
||||
|
||||
main()
|
||||
//main()
|
||||
|
|
Loading…
Add table
Reference in a new issue