@keyshade/cli
Version:
33 lines (29 loc) • 1.05 kB
text/typescript
import BaseCommand from '@/commands/base.command'
import CreateVariable from '@/commands/variable/create.variable'
import DeleteVariable from '@/commands/variable/delete.variable'
import ListVariable from '@/commands/variable/list.variable'
import FetchVariableRevisions from '@/commands/variable/revisions.variable'
import UpdateVariable from '@/commands/variable/update.variable'
import RollbackVariable from '@/commands/variable/rollback.variable'
import DisableVariable from './variable/disable.variable'
import EnableVariable from './variable/enable.variable'
export default class VariableCommand extends BaseCommand {
getName(): string {
return 'variable'
}
getDescription(): string {
return 'Manages the variable on keyshade'
}
getSubCommands(): BaseCommand[] {
return [
new CreateVariable(),
new DeleteVariable(),
new DisableVariable(),
new EnableVariable(),
new ListVariable(),
new FetchVariableRevisions(),
new UpdateVariable(),
new RollbackVariable()
]
}
}