@modyo/cli
Version:
Modyo CLI Command line to expose local development tools
29 lines (28 loc) • 3.37 kB
TypeScript
import { Command } from '@oclif/core';
export default class PUSH extends Command {
static readonly summary = "Push widget to Modyo platform";
static readonly description = "The `push` command is the one in charge of the integration principle, used to send the widget to the selected site in the modyo platform.\n\nIt will use an argument called name to upload the widget to the platform and some required flags like token site_base id or host to can identify the \u00AEModyo platform which host the widget and have an additional flag to avoid the manual process flow of widget publication.\n\nMany of the options can be defined as environment variables or inside an .env file that is recommended to avoid the publication to the GitHub registry because can contain some delicate information\n\nMODYO_BUILD_DIRECTORY=buildDirectoryPath\nMODYO_VERSION=version\nMODYO_TOKEN=token\nMODYO_ACCOUNT_URL=account-url\nMODYO_SITE_ID=siteId\nMODYO_SITE_HOST=siteHost\nMODYO_BUILD_COMMAND=buildCommand\nMODYO_REGEX_EXCLUDE=regexToExcludeFiles\nMODYO_DISABLE_LIQUID_REGEX=regexToDisableLiquidOnFiles\nMODYO_ZIP=true\nMODYO_ZIP_ENTRY_JS=main.js\nMODYO_ZIP_ENTRY_CSS=main.css\n";
static readonly examples: string[];
static readonly flags: {
token: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
publish: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
'build-directory': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
version: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'account-url': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'site-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'site-host': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'build-command': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'regex-exclude': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'remove-emojis': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
'disable-liquid': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
'disable-liquid-regex': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
zip: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
'zip-entry-js': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
'zip-entry-css': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
};
static readonly args: {
name: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
};
run(): Promise<void>;
}