Skip to content

nushell/pull/17741 make cargo-make-completions.nu#L19 error #1237

@Paul-16098

Description

@Paul-16098

nushell/nushell#17741 make https://github.com/nushell/nu_scripts/blob/main/custom-completions/cargo-make/cargo-make-completions.nu#L19 error:

  × `env` used as variable name.
    ╭─[C:\Users\pl816\.config\nushell\autoload\cargo-make-completions.nu:19:5]
 16 │     --skip-init-end-tasks                # If set, init and end tasks are skipped
 17 │     --skip-tasks: string                 # Skip all tasks that match the provided regex (example: pre.*|post.*)
 18 │     --env-file: path                     # Set environment variables from provided file
 19 │     --env(-e): string                    # Set environment variables
    ·     ────┬────
    ·         ╰── already a builtin variable
 20 │     --loglevel(-l): string@"nu-complete loglevels"  # The log level (verbose, info, error, off) [default: info]
 21 │     --verbose(-v)                        # Sets the log level to verbose (shorthand for --loglevel verbose)
 22 │     --quiet                              # Sets the log level to error (shorthand for --loglevel error)
    ╰────
  help: 'env' is the name of a builtin Nushell variable and cannot be used as a variable name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions