This commit is contained in:
Morten Olsen
2024-01-12 12:43:51 +01:00
commit 6d8e5bf955
109 changed files with 9246 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Command } from 'commander';
import { createClient } from '../../client/client.js';
import { step } from '../../utils/step.js';
const list = new Command('list');
list
.alias('ls')
.description('List loads')
.action(async () => {
const client = await step('Connecting to server', async () => {
return createClient();
});
const loads = step('Getting data', async () => {
await client.loads.find.query({});
});
console.table(loads);
});
export { list };