feat(tags): Complete tag support for remaining CLI commands

- Add --tag flag to update, move, and set-status commands
- Ensure all task operation commands now support tag context
- Fix missing tag context passing to core functions
- Complete comprehensive tag-aware command coverage
This commit is contained in:
Eyal Toledano
2025-06-13 03:33:14 -04:00
parent 3db62b5b88
commit fcc2351b3d
3 changed files with 77 additions and 10 deletions

View File

@@ -58,6 +58,30 @@ 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.dim=false] - Use dimmed styling
*/
function displayCurrentTagIndicator(tag, options = {}) {
if (isSilentMode()) return;
const { skipIfMaster = true, dim = false } = options;
// Skip display for master tag by default (since it's the default context)
if (skipIfMaster && tag === 'master') return;
// Create a small, tasteful tag indicator
const tagIcon = '🏷️';
const tagText = dim
? chalk.gray(`${tagIcon} tag: ${tag}`)
: chalk.dim(`${tagIcon} tag: `) + chalk.cyan(tag);
console.log(tagText);
}
/**
* Display a fancy banner for the CLI
*/
@@ -2720,5 +2744,6 @@ export {
failLoadingIndicator,
warnLoadingIndicator,
infoLoadingIndicator,
displayContextAnalysis
displayContextAnalysis,
displayCurrentTagIndicator
};