Update: Refactored commands into their own source files.
This commit is contained in:
14
src/cli/commands/table.ts
Normal file
14
src/cli/commands/table.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { readJsonFromStdin } from "../utils.ts";
|
||||
|
||||
export function usageTable(): string {
|
||||
return `Usage: sk-az-tools table [--header|-H <spec|auto|a|original|o>] [global options]
|
||||
|
||||
Options:
|
||||
-H, --header <value> Header mode/spec: auto|a (default), original|o, OR "col1, col2" OR "key1: Label 1, key2: Label 2"`;
|
||||
}
|
||||
|
||||
export async function runTableCommand(): Promise<unknown> {
|
||||
return readJsonFromStdin();
|
||||
}
|
||||
Reference in New Issue
Block a user