Skip to content

Support opening runbooks directly from remote URLs without a local clone #100

@odgrim

Description

@odgrim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions