@karmaniverous/get-dotenv
    Preparing search index...

    Function attachAwsAfterResolveHook

    • Internal

      Create the AWS plugin afterResolve hook.

      This runs after the host resolves dotenv context, but only when the aws plugin (or a child of it) is in the invoked command path. It establishes the invocation's session with the aws flags applied (read from the aws mount, which Commander has parsed by then), unless the aws preSubcommand hook already established it: then it keeps that session (#56).

      Parameters

      • plugin: PluginWithInstanceHelpers

        The AWS plugin instance.

      • awsOpts: () => unknown

        Reads the option values of the aws mount.

      Returns (cli: GetDotenvCliPublic, ctx: GetDotenvCliCtx) => Promise<void>

      An afterResolve hook function suitable for assigning to plugin.afterResolve.