@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
16 lines (15 loc) • 614 B
TypeScript
/**
* Tracks whether the current execution is running inside a one-shot
* command (deploy or destroy). When active, sub-commands skip their
* own lease management because the parent one-shot command holds a
* single lease for the entire operation.
*/
export declare class OneShotState {
private _active;
/** Returns true when execution is inside a one-shot command. */
isActive(): boolean;
/** Mark one-shot mode as active. Called by one-shot deploy/destroy init. */
activate(): void;
/** Mark one-shot mode as inactive. Called in one-shot finally blocks. */
deactivate(): void;
}