feat(MORG-54): add morg ls and make default morg context-aware#45
Merged
developerdavi merged 6 commits intomainfrom Mar 10, 2026
Merged
feat(MORG-54): add morg ls and make default morg context-aware#45developerdavi merged 6 commits intomainfrom
morg ls and make default morg context-aware#45developerdavi merged 6 commits intomainfrom
Conversation
- Rename `renderStatus()` → `renderBranches()` in `ui/output.ts` to better reflect what it renders - Export `runStatusDetail()` from `status.ts` - Add `src/commands/ls.ts`: `morg ls` / `morg branches` shows the multi-branch table (old default behavior) - Replace default `morg` action with context-aware logic: - On a tracked branch → `runStatusDetail()` (rich single-branch view) - Otherwise → `renderBranches()` + "not being tracked" hint
… command structure - Add 'ls' to shell-init COMMANDS array for tab completion - README: update 'What it does' blurb and Status section to document morg/morg ls/morg status - skill.md: update Viewing Status and workflow examples for new commands - CLAUDE.md: add rule to always keep README, skill, and shell-init in sync when changing commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
MORG-54: Move current "morg" command to "morg ls"
Summary
renderStatus()→renderBranches()inui/output.tsto better reflect its purposesrc/commands/ls.ts:morg ls(alias:morg branches) now shows the multi-branch table — preserving the oldmorgdefault behaviorrunStatusDetail()fromstatus.tsfor use in the default actionmorg(no subcommand) with context-aware logic:morg lstable + hint: "not being tracked → morg track"renderBranches()gracefullyTest plan
morg ls→ shows the branch table (same as oldmorg)morg branches→ same (alias)morgon main (untracked) → shows branch table + "not being tracked" messagemorgon a tracked feature branch → shows detailed status panel