Finished migration to commander.js, updated table rendering engine to use code blocks for resource Guids.
All checks were successful
build / build (push) Successful in 8s
All checks were successful
build / build (push) Successful in 8s
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
|
||||
type TableInfoCommandValues = {
|
||||
from?: string;
|
||||
[key: string]: string | boolean | undefined;
|
||||
};
|
||||
|
||||
type RowObject = Record<string, unknown>;
|
||||
@@ -102,13 +101,6 @@ function buildInfo(input: unknown): string {
|
||||
return lines.join("\n");
|
||||
}
|
||||
|
||||
export function usageTableInfo(): string {
|
||||
return `Usage: sk-tools table-info [--from|-F <json|csv|tsv>]
|
||||
|
||||
Options:
|
||||
--from, -F <json|csv|tsv> Input format on stdin (default: json)`;
|
||||
}
|
||||
|
||||
export async function runTableInfoCommand(values: TableInfoCommandValues): Promise<string> {
|
||||
const from = (values.from ?? "json").toString().trim().toLowerCase();
|
||||
|
||||
|
||||
@@ -7,17 +7,8 @@ import {
|
||||
|
||||
type TableCommandValues = {
|
||||
from?: string;
|
||||
[key: string]: string | boolean | undefined;
|
||||
};
|
||||
|
||||
export function usageTable(): string {
|
||||
return `Usage: sk-tools table [--from|-F <json|csv|tsv>] [--columns|-C <columns>] [global options]
|
||||
|
||||
Options:
|
||||
--from, -F <json|csv|tsv> Input format on stdin (default: json)
|
||||
--columns, -C <value> Column tokens: col (raw), col: (auto), col:Label (custom), with exact match via = prefix (e.g. =col:)`;
|
||||
}
|
||||
|
||||
export async function runTableCommand(values: TableCommandValues): Promise<unknown> {
|
||||
const from = (values.from ?? "json").toString().trim().toLowerCase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user