@agility/cli
Version:
Agility CLI for working with your content. (Public Beta)
170 lines (169 loc) • 3.69 kB
TypeScript
/**
* Standardized system arguments for Agility CLI commands
* Reusable argument definitions to eliminate duplication across commands
*/
/**
* Common system arguments that are repeated across multiple commands
* These should be spread into command builders: ...systemArgs
*/
export declare const systemArgs: {
dev: {
describe: string;
type: "boolean";
default: boolean;
};
local: {
describe: string;
type: "boolean";
default: boolean;
};
preprod: {
describe: string;
type: "boolean";
default: boolean;
};
headless: {
describe: string;
type: "boolean";
default: boolean;
};
verbose: {
describe: string;
type: "boolean";
default: boolean;
};
rootPath: {
describe: string;
demandOption: boolean;
default: string;
type: "string";
};
legacyFolders: {
describe: string;
demandOption: boolean;
type: "boolean";
default: boolean;
};
locale: {
describe: string;
demandOption: boolean;
type: "string";
alias: string[];
};
channel: {
describe: string;
demandOption: boolean;
type: "string";
default: string;
};
preview: {
describe: string;
demandOption: boolean;
type: "boolean";
default: boolean;
};
elements: {
describe: string;
demandOption: boolean;
type: "string";
default: string;
};
insecure: {
describe: string;
type: "boolean";
default: boolean;
};
baseUrl: {
describe: string;
type: "string";
};
models: {
describe: string;
demandOption: boolean;
alias: string[];
type: "string";
default: string;
};
modelsWithDeps: {
describe: string;
demandOption: boolean;
alias: string[];
type: "string";
default: string;
};
test: {
describe: string;
demandOption: boolean;
type: "boolean";
default: boolean;
};
sourceGuid: {
describe: string;
alias: string[];
demandOption: boolean;
type: "string";
};
targetGuid: {
describe: string;
alias: string[];
demandOption: boolean;
type: "string";
};
overwrite: {
describe: string;
type: "boolean";
alias: string[];
default: boolean;
};
force: {
describe: string;
type: "boolean";
alias: string[];
default: boolean;
};
update: {
describe: string;
type: "boolean";
alias: string[];
default: boolean;
};
reset: {
describe: string;
type: "boolean";
default: boolean;
};
publish: {
describe: string;
type: "boolean";
alias: string[];
default: boolean;
};
};
/**
* Type helper for command arguments that include system args
*/
export type SystemArgsType = typeof systemArgs;
export interface SystemArgs {
help?: boolean;
version?: boolean;
pull?: boolean;
push?: boolean;
sync?: boolean;
clean?: boolean;
generate?: boolean;
publish?: boolean;
test?: boolean;
verbose?: boolean;
overwrite?: boolean;
force?: boolean;
update?: boolean;
legacyFolders?: boolean;
elements?: string;
guid?: string;
sourceGuid?: string;
targetGuid?: string;
locale?: string;
channel?: string;
preview?: boolean;
rootPath?: string;
}