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

feat: runbook snapshot list #340

Merged
merged 3 commits into from
Mar 13, 2024
Merged

feat: runbook snapshot list #340

merged 3 commits into from
Mar 13, 2024

Conversation

benPearce1
Copy link
Contributor

with selectors, one runbook

❯ octopus runbook snapshot list -s default -f json
? Select the project to list runbook snapshots for just runbooks
[
  {
    "Id": "RunbookSnapshots-123",
    "Name": "Snapshot 68G5LE7",
    "Assembled": "2024-03-12T04:43:06.083Z"
  },
  {
    "Id": "RunbookSnapshots-122",
    "Name": "Snapshot 7KX8P9X",
    "Assembled": "2024-03-12T04:42:43.243Z"
  }
]

with multiple runbooks in project:

❯ octopus runbook snapshot list -s default
? Select the project to list runbook snapshots for project-49f8539a-eb71-441d-ab19-19e55ab4ec29
? Select the runbook to list snapshots for runbook 2
ID                    NAME              ASSEMBLED
RunbookSnapshots-124  Snapshot GW1NUT5  Tue, 12 Mar 2024 06:31:03 +0000

json output

❯ octopus runbook snapshot list -s default -p just-runbooks -r runbook -f json
[
  {
    "Id": "RunbookSnapshots-123",
    "Name": "Snapshot 68G5LE7",
    "Assembled": "2024-03-12T04:43:06.083Z"
  },
  {
    "Id": "RunbookSnapshots-122",
    "Name": "Snapshot 7KX8P9X",
    "Assembled": "2024-03-12T04:42:43.243Z"
  }
]

basic output

❯ octopus runbook snapshot list -s default -p just-runbooks -r runbook -f basic
Snapshot 68G5LE7
Snapshot 7KX8P9X

Co-authored-by: Henrik Andersson <henrik.andersson@octopus.com>
Copy link
Contributor

@hnrkndrssn hnrkndrssn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@benPearce1 benPearce1 merged commit 43d5f2c into main Mar 13, 2024
4 checks passed
@benPearce1 benPearce1 deleted the bp/runbook-snapshot-list branch March 13, 2024 00:09
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

Successfully merging this pull request may close these issues.

2 participants