mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
12 lines
287 B
TypeScript
12 lines
287 B
TypeScript
import { Command } from 'commander';
|
|
import { Context } from '../../context/context.js';
|
|
|
|
const list = new Command('list');
|
|
list.alias('ls').description('List contexts');
|
|
list.action(async () => {
|
|
const contexts = await Context.list();
|
|
console.table(contexts);
|
|
});
|
|
|
|
export { list };
|