Skip to content

CLI_ARGS is not available in top-level vars #1108

@fcwoknhenuxdfiyv

Description

@fcwoknhenuxdfiyv

I cannot use CLI_ARGS in the top-level vars: section to prepare some other variables:

vars:
  Host:
    sh: echo "{{.CLI_ARGS}}" | sed 's/,.*//g;s/ .*//g'

Due to this oversight, I have to put the above code in every task.

  • Task version: 3.23.0
  • Operating System: macOS 12.6.2

Thanks for the wonderful program!

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions