question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to use source template path in tasks section

See original GitHub issue

Sorry for opening so many feature requests, but it’s so you have them on your radar. 😅

The tasks section allows you to write scripts in a YAML file. That can be useful for short scripts, but if you need something serious, it becomes uncomfortable.

If there were some var such as [[ source_dir ]] then I could use tasks such as:

# copier.yml
_exclude:
  - post-clone*
_tasks:
  - pip install "[[ source_dir ]]/post-clone-dependencies.txt"
  - "[[ source_dir ]]/post-clone.py"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pykongcommented, Nov 7, 2019

No aplogizes. As I have said I am thankful for every feedback. So keep your issues flowing…

0reactions
yajocommented, Mar 1, 2020

Maybe, although if what you need is to execute something from the template, be aware that the _src_path there points to the original source (eg. the git url), not to the local temporary copy. You’d probably need the temporary copy path if you want to execute a script from there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

16. Job Templates — Ansible Tower User Guide v3.8.6
Use allows use of a resource in a job template (applies all resources except job templates)
Read more >
Tasks in Visual Studio Code
Integrate with External Tools via Tasks. Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems.
Read more >
`.gitlab-ci.yml` keyword reference - GitLab Docs
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
Read more >
ARM template - Azure Resource Manager - Microsoft Learn
Describes the benefits using Azure Resource Manager templates (ARM templates) for deployment of resources.
Read more >
Gantt Chart 101: A Complete Guide [2023] • Asana
You can use these charts to determine which tasks you need to complete for the entire project to be successful and finish on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found