Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

BuiltInOptions

16 exports Since v1.0.0 Source

Constructors

Signature

declare const showCompletions: (shellType: BuiltInOptions.ShellType) => BuiltInOptions
Since v1.0.0

Signature

declare const showHelp: (usage: Usage, helpDoc: HelpDoc) => BuiltInOptions

Signature

declare const showVersion: BuiltInOptions

Signature

declare const showWizard: (command: Command<unknown>) => BuiltInOptions

Models

Since v1.0.0

Signature

type BuiltInOptions = SetLogLevel | ShowHelp | ShowCompletions | ShowWizard | ShowVersion

SetLogLevel

interface
Since v1.0.0

Signature

interface SetLogLevel {
readonly _tag: "SetLogLevel";
readonly level: LogLevel;
}
Since v1.0.0

Signature

interface ShowCompletions {
readonly _tag: "ShowCompletions";
readonly shellType: ShellType;
}

ShowHelp

interface
Since v1.0.0

Signature

interface ShowHelp {
readonly _tag: "ShowHelp";
readonly helpDoc: HelpDoc;
readonly usage: Usage;
}

ShowVersion

interface
Since v1.0.0

Signature

interface ShowVersion {
readonly _tag: "ShowVersion";
}

ShowWizard

interface
Since v1.0.0

Signature

interface ShowWizard {
readonly _tag: "ShowWizard";
readonly command: Command<unknown>;
}

Options

Signature

declare const builtInOptions: <A>(command: Command<A>, usage: Usage, helpDoc: HelpDoc) => Options<Option<BuiltInOptions>>

Other

Refinements

Signature

declare const isShowCompletions: (self: BuiltInOptions) => self is ShowCompletions

Signature

declare const isShowHelp: (self: BuiltInOptions) => self is ShowHelp

Signature

declare const isShowVersion: (self: BuiltInOptions) => self is ShowVersion

Signature

declare const isShowWizard: (self: BuiltInOptions) => self is ShowWizard