@shopify/cli
Version:
A CLI tool to build for the Shopify platform
22 lines (21 loc) • 767 B
TypeScript
import Command from '@shopify/cli-kit/node/base-command';
import { Command as oclifCommand } from '@oclif/core';
export type CommandWithMarkdown = oclifCommand.Loadable & {
descriptionWithMarkdown?: string;
};
export interface CommandData {
commandName: string;
fileName: string;
interfaceName: string;
}
export default class DocsGenerate extends Command {
static description: string;
static hidden: boolean;
run(): Promise<void>;
}
export declare function extractCommandData(command: CommandWithMarkdown): {
commandName: string;
fileName: string;
interfaceName: string;
};
export declare function writeCommandFlagInterface(command: oclifCommand.Loadable, { commandName, fileName, interfaceName }: CommandData): Promise<void>;