Preserve account context in template library breadcrumbs

Merged
RO
3mo ago
+10-3

What

  • Preserve the active profile and any process-local account selection in the templates library copy breadcrumb.
  • Cover profile quoting and flag-sourced account propagation with a regression test.

Why

Following the advertised copy command after running templates library with a one-off --profile or --account could resolve against a different account in the next process. The other template copy and status breadcrumbs already carry this context.

Testing

  • bin/ci

Summary by cubic

Preserves the active profile and account selection in the templates library copy breadcrumb so the advertised command works against the same account in the next process. Previously, following the breadcrumb after a one-off --profile or --account could resolve against a different account.

  • Appends --profile and --account flags to the copy breadcrumb when they are set.
  • Adds a regression test covering profile quoting and flag-sourced account propagation.