Summary
When bootstrapping a new environment or onboarding to a project, a local repository may not yet exist. Requiring a cloned repo to run a runbook creates a chicken-and-egg problem — the runbook often is the setup process. runbooks should support opening runbooks directly from a remote URL.
Proposed syntax
We shouldn't reinvent the wheel here and simple gogetter syntax should work as expected:
runbooks open "github.com/gruntwork-io/infrastructure-live-root-template//runbooks/bootstrap?ref=runbook"
Expected behavior
- Detect that the argument is a remote URL rather than a local path
- Fetch the runbook at the specified ref
- Open and run it as normal
- Optionally cache the result locally
Summary
When bootstrapping a new environment or onboarding to a project, a local repository may not yet exist. Requiring a cloned repo to run a runbook creates a chicken-and-egg problem — the runbook often is the setup process. runbooks should support opening runbooks directly from a remote URL.
Proposed syntax
We shouldn't reinvent the wheel here and simple gogetter syntax should work as expected:
Expected behavior