Commit Graph
6 Commits
Author SHA1 Message Date
Jan De DobbeleerandJan De Dobbeleer 4ba5e70967 chore(apm): always resolve lock file
Entire-Checkpoint: 415f73d35669
2026-07-15 09:05:39 +02:00
dependabot[bot]andgithub-actions[bot] 312c2dc88f chore(deps): bump actions/checkout from 6 to 7 in the all group
Bumps the all group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 00:07:51 +00:00
Jan De DobbeleerandJan De Dobbeleer 315eea626c chore: setup copilot's runspace 2026-05-07 09:01:01 +02:00
b38d1cf24c feat(template): add cmd function to run OS commands from templates (#7495)
* feat(template): add cmd function to run OS commands from templates

Adds a `cmd` template function that calls env.RunCommand() and
returns trimmed output, enabling users to incorporate arbitrary
command output into any segment template.

Example usage:
  {{ cmd "who" | splitList "
" | len }}
  {{ cmd "git" "log" "--oneline" "-1" }}

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: restore apm.lock after apm install on session create

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: restore apm.lock after apm install in setup steps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(template): fix field alignment in exec_test.go

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* docs(template): add security warning to cmd helper

Warn that cmd executes arbitrary OS commands as the current user and
should only be used with trusted themes/configs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* refactor(template): rename exec to cmd

Rename exec.go -> cmd.go and exec_test.go -> cmd_test.go to match the
template function name. Also rename TestExec -> TestCmd.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-29 10:49:33 +02:00
dependabot[bot]andgithub-actions[bot] ce205a8c4f chore(deps): bump actions/checkout from 4 to 6 in the all group
Bumps the all group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-13 00:10:50 +00:00
Jan De DobbeleerandJan De Dobbeleer fce8753abd chore: create copilot-setup-steps 2026-03-12 20:31:46 +01:00