#!/usr/bin/env node

import { run, subcommands } from "cmd-ts";
import { addCommand } from "./commands/add";
import { authCommand } from "./commands/auth";
import { initCommand } from "./commands/init";
import { injectCommand } from "./commands/inject";
import { loginCommand } from "./commands/login";
import { publishCommand } from "./commands/publish";
import { syncCommand } from "./commands/sync";
import { updateCommand } from "./commands/update";

const app = subcommands({
	name: "sequoia",
	description: `

                 .*##*###:
               :**:     :**:
              :#:         :#:
              #=           =#
              #=           -#
             +#-           -#+
            **:      #.     .**
            #=   +#-:#.      =#
           :#:    .*##.  :   :*-
            #=      -#+*#-   =#
            **:      ##=    .**
             +#=     #.    -#+
               +**   #.  *#*
                     #.
                     #.
                     #.
                 :**###**:

Publish evergreen content to the ATmosphere

> https://tangled.org/stevedylan.dev/sequoia
	`,
	version: "0.5.5",
	cmds: {
		add: addCommand,
		auth: authCommand,
		init: initCommand,
		inject: injectCommand,
		login: loginCommand,
		publish: publishCommand,
		sync: syncCommand,
		update: updateCommand,
	},
});

run(app, process.argv.slice(2));
