Skip to content

Comments

Argument reordering#834

Merged
scriptingosx merged 1 commit intoInstallomator:devfrom
scriptingosx:argument-reordering
Jan 21, 2023
Merged

Argument reordering#834
scriptingosx merged 1 commit intoInstallomator:devfrom
scriptingosx:argument-reordering

Conversation

@scriptingosx
Copy link
Collaborator

Changed the behavior of argument parsing:

  • label now has to be the first argument (or $4 with Jamf)
  • you can override variables with arguments 2 and up, order remains irrelevant ($5 and up with Jamf)
  • parsing variable arguments now happen after evaluating the label

This re-ordering of evaluation now allows you to override values set in the actual label with arguments.

This can allow admins to temporarily override broken downloadURLs or appNewVersions.

@scriptingosx scriptingosx added argument-refactor refactor how arguments are parsed improvement minor improvement of an existing feature labels Jan 6, 2023
@scriptingosx scriptingosx added this to the v11 milestone Jan 6, 2023
@scriptingosx scriptingosx changed the base branch from main to dev January 6, 2023 13:53
@scriptingosx scriptingosx merged commit d943a2e into Installomator:dev Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

argument-refactor refactor how arguments are parsed improvement minor improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant