UNPKG

@stencila/jesta

Version:

Stencila plugin for executable documents using JavaScript

22 lines (21 loc) 722 B
import { Jesta } from '.'; /** * Expose a command line interface for the plugin. * * The command line interface is intended to be simple and mainly * for use by plugin developers and users that want to use * plugins standalone. * * Note: This function is a simple wrapper around the `run` function that * passes it the args vector and exits on error. */ export declare function cli(this: Jesta): void; /** * Run a command. * * Note: This function is separate from the `cli` function to facilitate testing. * * @param plugin The plugin to run the command on (Jesta or a derived plugin) * @param argv The vector of string arguments */ export declare function run(this: Jesta, argv: string[]): Promise<void>;