@modyo/cli
Version:
Modyo CLI Command line to expose local development tools
41 lines (40 loc) • 1.77 kB
TypeScript
export interface CommandArgs {
readonly name?: string;
}
export interface CommandFlags {
readonly 'site-host'?: string;
readonly 'site-id'?: string;
readonly 'account-url'?: string;
readonly token?: string;
readonly version?: string;
readonly 'disable-liquid'?: boolean;
readonly 'disable-liquid-regex'?: string;
readonly 'build-directory'?: string;
readonly 'build-command'?: string;
readonly 'regex-exclude'?: string;
readonly 'remove-emojis'?: boolean;
readonly publish?: boolean;
readonly zip?: boolean;
readonly 'zip-entry-js'?: string;
readonly 'zip-entry-css'?: string;
}
export interface CommandParams {
readonly name: string;
readonly siteId: string;
readonly liquidRegex: RegExp;
readonly version: string;
readonly token: string;
readonly accountUrl: string;
readonly buildDirectory: string;
readonly buildCommand: string;
readonly regexExclude: RegExp;
readonly removeEmojis: boolean;
readonly publish: boolean;
readonly zip: boolean;
readonly zipEntryJs: string;
readonly zipEntryCss: string;
}
export default function prepareAndValidateParam({ args: { name: argName, }, flags: { 'site-host': flagSiteHost, 'site-id': flagSiteId, 'account-url': flagAccountUrl, token: flagToken, version: flagVersion, 'disable-liquid': flagDisableLiquid, 'disable-liquid-regex': flagDisableLiquidRegex, 'build-directory': flagBuildDirectory, 'build-command': flagBuildCommand, 'regex-exclude': flagRegexExclude, 'remove-emojis': flagRemoveEmojis, publish: flagPublish, zip: flagZip, 'zip-entry-js': flagZipEntryJs, 'zip-entry-css': flagZipEntryCss, }, }: {
readonly args: CommandArgs;
readonly flags: CommandFlags;
}): Promise<CommandParams>;