Skip to content

env-backed arguments are empty #468

@asphaltbuffet

Description

@asphaltbuffet

Specifically, when trying to use $HOSTNAME as an argument, there is no value set:

[tasks.test]
usage = '''
arg "[host]" env="HOSTNAME" default="localhost"
'''
run = ["echo $HOSTNAME", "echo ${usage_host}"]

This outputs:

❯ mise tasks run test
[test] $ echo $HOSTNAME
wendigo
[test] $ echo ${usage_host}
localhost

From the documentation, I would expect it to set usage_host to be 'wendigo' unless I set it as a positional argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions