mise API - v0.0.0
    Preparing search index...

    Function pluginIndexSource_parse

    • Parses an index source word.

      owner/repo[@ref] is a GitHub repository; host:<path> a host path; cube:<path> a CUBE path. Any other word is a path, read where bare says: plugin sync reads a bare path on CUBE, plugin validate (which needs no CUBE) on the host.

      Parameters

      • word: string

        The source as typed.

      • bare: "host" | "cube"

        Where a path with no prefix is read.

      • Optionalref: string

        A ref overriding the word's own (--ref), for a GitHub source.

      Returns PluginIndexSource | null

      The parsed source, or null for an empty word.

      pluginIndexSource_parse('FNNDSC/chris-plugins@v1', 'cube'); // { kind: 'github', …, ref: 'v1' }
      pluginIndexSource_parse('host:./plugins', 'cube'); // { kind: 'host', path: './plugins' }