UNPKG

@contentstack/cli-cm-clone

Version:
22 lines (21 loc) 953 B
import { Command } from '@contentstack/cli-command'; import { CloneContext } from '../../../types/clone-context'; export default class StackCloneCommand extends Command { static description: string; static examples: string[]; static aliases: string[]; static flags: any; static usage: string; /** * Determine authentication method based on user preference */ determineAuthenticationMethod(sourceManagementTokenAlias?: string, destinationManagementTokenAlias?: string): string; /** * Create clone context object for logging */ createCloneContext(authenticationMethod: string): CloneContext; run(): Promise<void>; removeContentDirIfNotEmptyBeforeClone(dir: string, cloneContext: CloneContext): Promise<void>; cleanUp(pathDir: string, message: string | null, cloneContext: CloneContext): Promise<void>; registerCleanupOnInterrupt(pathDir: string, cloneContext: CloneContext): void; }