igcv3 - v1.1.0
    Preparing search index...

    Class PromptUtils

    Index

    Constructors

    Methods

    • Creates a filter function for fuzzy path that excludes standard directories and filters files by allowed extensions.

      Parameters

      • allowedExtensions: string[]

        Array of file extensions to allow (e.g., ['.pem', '.crt'])

      Returns (nodePath: string) => boolean

    • Returns a filter function for inquirer-fuzzy-path to exclude non-certificate files and standard ignored directories.

      Returns (nodePath: string) => boolean

    • Returns a filter function for inquirer-fuzzy-path to exclude non-key files and standard ignored directories.

      Returns (nodePath: string) => boolean

    • Prompts user to select a file using fuzzy path search.

      Type Parameters

      • T extends string = string

      Parameters

      Returns Promise<T>

      The selected file path

    • Shorthand to prompt for a certificate file.

      Parameters

      • message: string

        The prompt message

      Returns Promise<string>

      The selected certificate file path

    • Shorthand to prompt for a private key file.

      Parameters

      • message: string

        The prompt message

      Returns Promise<string>

      The selected key file path

    • Prompts the user to select a preset from the available configuration.

      Parameters

      Returns Promise<string>

    • Prompts for the Common Name (CN)

      Returns Promise<string>

    • Prompts for manual certificate details

      Parameters

      Returns Promise<
          {
              countryName: string;
              stateOrProvinceName: string;
              localityName: string;
              organizationName: string;
              organizationalUnitName: string;
              validityDays: number;
              sanInput: string;
              keyAlgo: "rsa";
              keySize: number;
          },
      >

    • Prompts the user for variables defined in the preset, skipping those already provided.

      Parameters

      • preset: ConfigPreset
      • existingOptions: Record<string, unknown>

      Returns Promise<Record<string, unknown>>