Module

x/nessie/deps.ts>CliffyCommand#getGlobalParent

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Latest
method CliffyCommand.prototype.getGlobalParent
import { CliffyCommand } from "https://dotland.deno.dev/x/nessie@2.0.11/deps.ts";

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