Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/powar/deps.ts>cliffy.Command#getGlobalParent

A simple but powerful TypeScript-based dot-file manager.
Latest
method cliffy.Command.prototype.getGlobalParent
Re-export
import { cliffy } from "https://deno.land/x/powar@1.0.4/deps.ts";
const { Command } = cliffy;

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<any> | undefined