refactor: remove unused usage functions and migrate argument parsing to commander.js
This commit is contained in:
@@ -29,16 +29,6 @@ function omitColumns(input: unknown, names: string[]): unknown {
|
||||
);
|
||||
}
|
||||
|
||||
export function usageListAppPermissions(): string {
|
||||
return `Usage: sk-az-tools list-app-permissions --app-id|-i <appId> [--resolve|-r] [--short|-s] [--filter|-f <glob>] [global options]
|
||||
|
||||
Options:
|
||||
--app-id, -i <appId> Application (client) ID (required)
|
||||
--resolve, -r Resolve permission GUIDs to human-readable values
|
||||
--short, -s Makes output more compact
|
||||
--filter, -f <glob> Filter by permission name glob`;
|
||||
}
|
||||
|
||||
export async function runListAppPermissionsCommand(options: ListAppPermissionsOptions): Promise<unknown> {
|
||||
if (!options.appId) {
|
||||
throw new Error("--app-id is required for list-app-permissions");
|
||||
|
||||
Reference in New Issue
Block a user