@decentralized-identity/ion-cli
Version:
A Command Line Interface (CLI) to make working with the ION network and using ION DIDs easy peasy lemon squeezy.
28 lines (27 loc) • 1.12 kB
TypeScript
import { Command, flags } from '@oclif/command';
export default class Resolve extends Command {
static description: string;
static examples: string[];
static flags: {
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
directory: flags.IOptionFlag<string | undefined>;
node: flags.IOptionFlag<string | undefined>;
escape: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
name: flags.IOptionFlag<string | undefined>;
cacheTtl: import("@oclif/parser/lib/flags").IOptionFlag<number>;
cache: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
};
static args: {
name: string;
required: boolean;
description: string;
}[];
/**
* Checks whether the state should be refreshed by comparing the
* refreshedAt with the current time adjusted by timeToLive.
* @param refreshedAt date and time the state was last refreshed.
* @param timeToLive to determine whether the state should be refreshed.
*/
private static isExpired;
run(): Promise<void>;
}