cli skeleton

This commit is contained in:
Quentin 2025-02-20 20:15:19 +01:00
parent 39dd4bd7ca
commit d95c3e2bb5
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -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()