Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access outputs documentation has invalid syntax #47

Closed
finkinfridom opened this issue Jul 18, 2024 · 2 comments
Closed

Access outputs documentation has invalid syntax #47

finkinfridom opened this issue Jul 18, 2024 · 2 comments

Comments

@finkinfridom
Copy link

In the readme (and also the documentation into the Visual Studio Marketplace), there is this code sample

steps:
- task: qetza.replacetokens.replacetokens-task.replacetokens@6
  name: replace-tokens
  inputs:
    sources: '**/*.json'
- script: |
    echo "defaults  : $(replace-tokens.defaults }}"
    echo "files     : $(replace-tokens.files }}"
    echo "replaced  : $(replace-tokens.replaced }}"
    echo "tokens    : $(replace-tokens.tokens }}"
    echo "transforms: $(replace-tokens.transforms }}"

unfortunately, the name propery has an invalid syntax (the - char is not allowed) and the script with the echo statements contains $( opening braces but endings with }} which is invalid.

Thanks

@finkinfridom
Copy link
Author

finkinfridom commented Jul 18, 2024

this should be the working version

  - task: qetza.replacetokens.replacetokens-task.replacetokens@6
    displayName: replace tokens in tf and tfvars files
    name: replacetokens
    inputs:
      sources: "**/*json"

  - script: |
      echo 'defaults  : $(replacetokens.defaults)'
      echo 'files     : $(replacetokens.files)'
      echo 'replaced  : $(replacetokens.replaced)'
      echo 'tokens    : $(replacetokens.tokens)'
      echo 'transforms: $(replacetokens.transforms)'
    displayName: "DEBUG replace tokens in tf and tfvars files"

@qetza
Copy link
Owner

qetza commented Aug 15, 2024

Hi @finkinfridom,
Thanks for raising the issue, documentation is now fixed 😄

@qetza qetza closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants