Skip to main content
Latest
method cli.Command.prototype.getGlobalParent
Re-export
import { cli } from "https://deno.land/x/create_react_app@v0.1.2/deps.ts";
const { Command } = cli;

Get parent command from global executed command. Be sure, to call this method only inside an action handler. Unless this or any child command was executed, this method returns always undefined.

Returns

Command | undefined