Class CommandFeatureSelector

Represents a selector for enabling or disabling command features.

Hierarchy

  • CommandFeatureSelector

Constructors

Properties

cmd: CommandBuilder<unknown[], OptionValues>

The command builder instance.

isAppDataEnabled: boolean = false

Indicates whether the app data feature is enabled.

isAutoAssignMissingOptionFlagsEnabled: boolean = false

Indicates whether the auto assign missing option flags feature is enabled.

isAutoAssignSubCommandAliasesEnabled: boolean = false

Indicates whether the auto assign sub command aliases feature is enabled.

isConfigEnabled: boolean = false

Indicates whether the config feature is enabled.

isPresetsEnabled: boolean = false

Indicates whether the presets feature is enabled.

Methods

  • Helper method to enable or disable a feature.

    Parameters

    • boolean: boolean = true

      Indicates whether the auto assign sub command aliases feature should be enabled or disabled.

    • prop: keyof CommandFeatureSelector

      The property name to set.

    • method: string

      The method name to output in the debug message.

    • throwIfNative: boolean

      Indicates whether an error should be thrown if the command is native.

    Returns CommandFeatureSelector

    The current CommandFeatureSelector instance.

Generated using TypeDoc