Skip to content

Preserve search and time arguments in copied CLI commands - #73

Open
puncsky wants to merge 1 commit into
render-oss:mainfrom
puncsky:fix/preserve-copied-command-arguments-20261029
Open

puncsky wants to merge 1 commit into
render-oss:mainfrom
puncsky:fix/preserve-copied-command-arguments-20261029

Conversation

@puncsky

@puncsky puncsky commented Oct 30, 2026

Copy link
Copy Markdown

Summary

Build Copy output using the effective Cobra flag types, POSIX shell quoting and accepted time strings. Encode StringSlice elements as CSV and repeat StringArray flags.

Motivation

A working search containing spaces or literal commas can copy as a different command, and a relative time can copy as a Go pointer/struct representation.

How to verify

go test ./cmd/... ./pkg/... ./internal/...
  • All 57 development packages pass on the candidate.
  • Tests feed copied text through a POSIX shell and the actual flag parser, checking phrase/literal-comma filters, relative/nanosecond times, aliases, enums, repeated arrays, positional quoting and default controls. Shell-dependent tests skip when sh is unavailable.
  • New-code lint is clean against c31e586e; full lint on unmodified main reports 92 pre-existing findings with the pinned golangci-lint v2.14.0.

Release notes

Copied CLI commands preserve quoted search terms, list boundaries and accepted time arguments.

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.

1 participant