Skip to content

Migrate caff and sort-in-place tools#5

Merged
codeforester merged 1 commit into
mainfrom
enhancement/4-20260606-migrate-caff-sort
Jun 6, 2026
Merged

Migrate caff and sort-in-place tools#5
codeforester merged 1 commit into
mainfrom
enhancement/4-20260606-migrate-caff-sort

Conversation

@codeforester
Copy link
Copy Markdown
Owner

Summary

  • Migrate caff and sort-in-place from codeforester/base into the Base Platform Tools CLI layout.
  • Add public launchers under bin/ that delegate through Base's basectl.
  • Add Bash command implementations, README files, and BATS tests under cli/bash/commands/.
  • Declare caff and sort-in-place in base_manifest.yaml.
  • Extend validation and GitHub Actions to cover the migrated command structure and BATS tests.

Issue

Closes #4

Validation

  • tests/validate.sh
  • bash -n bin/caff bin/sort-in-place cli/bash/commands/caff/caff.sh cli/bash/commands/sort-in-place/sort-in-place.sh tests/validate.sh
  • bats cli/bash/commands/caff/tests/caff.bats cli/bash/commands/sort-in-place/tests/sort-in-place.bats
  • git diff --check
  • /Users/rameshhp/work/base/bin/basectl test base-platform-tools --workspace /Users/rameshhp/work/base-platform-tools-worktrees
  • /Users/rameshhp/work/base/bin/basectl run base-platform-tools --workspace /Users/rameshhp/work/base-platform-tools-worktrees --list
  • /Users/rameshhp/work/base/bin/basectl run base-platform-tools caff --workspace /Users/rameshhp/work/base-platform-tools-worktrees -- --help
  • /Users/rameshhp/work/base/bin/basectl run base-platform-tools sort-in-place --workspace /Users/rameshhp/work/base-platform-tools-worktrees -- --help

basectl test and basectl run report the expected warning that the base-platform-tools project venv has not been created yet because basectl setup base-platform-tools has not been run, then execute successfully.

Platform Support

  • caff is macOS-specific because it depends on the macOS caffeinate command.
  • sort-in-place uses Bash and sort; it should work on macOS, Linux, and WSL where standard POSIX tools are available.
  • CI runs the BATS suite on Ubuntu with command stubs for macOS-specific caff behavior.

Notes

  • This PR copies/migrates the utilities into base-platform-tools.
  • A follow-up PR in codeforester/base will remove the old copies from Base after this PR is merged.

@codeforester codeforester merged commit 7a36175 into main Jun 6, 2026
2 checks passed
@codeforester codeforester deleted the enhancement/4-20260606-migrate-caff-sort branch June 6, 2026 18:10
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.

Migrate caff and sort-in-place from Base

1 participant