Skip to content

Conversation

@mcncl
Copy link
Contributor

@mcncl mcncl commented Dec 16, 2025

Description

This adds a sub-command to pipeline so that folks can cp/copy a pipeline either within the org or cross-org if they have them configured.

Changes

  • Adds a copy command, aliased to cp in main.go
  • Implements a prompter for input using stdlib (avoid using lipgloss for no reason)
  • Adds the internal/ command for parsing and copying to a target pipeline
    • This did get some help from AI, see below

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

Disclosures / Credits

  • I had AI help me with some input validation; I wasn't quite getting the selection correct even though the code is literally in this project.
  • Also had it debug my client creation for cross-org copy as I was incorrectly setting up token calls.

@mcncl mcncl requested a review from a team as a code owner December 16, 2025 03:18
@mcncl mcncl enabled auto-merge (squash) December 16, 2025 09:32
@mcncl mcncl merged commit 78d48f8 into main Dec 16, 2025
1 check passed
@mcncl mcncl deleted the bm/pipeline_copy branch December 16, 2025 09:33
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.

3 participants