@shopify/cli
Version:
A CLI tool to build for the Shopify platform
9 lines (8 loc) • 335 B
TypeScript
/**
* Load a command class by its ID.
*
* Looks up the command in the oclif manifest to find the owning package,
* derives the file path from the command ID, and imports only that file.
* Falls back to importing the full package for external plugins.
*/
export declare function loadCommand(id: string): Promise<any | undefined>;