feat(ui): add tag indicator to all CLI commands

- shows 🏷️ tag: tagname for complete context visibility across 15+ commands
This commit is contained in:
Eyal Toledano
2025-06-13 03:51:49 -04:00
parent fcc2351b3d
commit 9d755b9e79
4 changed files with 74 additions and 18 deletions

View File

@@ -62,15 +62,15 @@ function displayTaggedTasksFYI(data) {
* Display a small, non-intrusive indicator showing the current tag context
* @param {string} tagName - The tag name to display
* @param {Object} options - Display options
* @param {boolean} [options.skipIfMaster=true] - Don't show indicator if tag is 'master'
* @param {boolean} [options.skipIfMaster=false] - Don't show indicator if tag is 'master'
* @param {boolean} [options.dim=false] - Use dimmed styling
*/
function displayCurrentTagIndicator(tag, options = {}) {
if (isSilentMode()) return;
const { skipIfMaster = true, dim = false } = options;
const { skipIfMaster = false, dim = false } = options;
// Skip display for master tag by default (since it's the default context)
// Skip display for master tag only if explicitly requested
if (skipIfMaster && tag === 'master') return;
// Create a small, tasteful tag indicator