Skip to content

mcc v0.2.0

Choose a tag to compare

@luongnv89 luongnv89 released this 13 Oct 08:54
· 46 commits to main since this release

mcc usage is now a compact table that hides account emails by default, and mcc rename renames a profile and its command while keeping its login.

Heads-up for scripts: mcc usage --json now returns "account": null unless account emails are shown. To keep reading account, add --show-email, or set show_email = true under [usage] in ~/.mcc/config.toml.

Added

  • mcc rename ALIAS NEW (alias mv): renames a profile and its command. It installs the new launcher and alias block, renames the registry entry, then removes the old launcher and alias. The new name is checked like an alias in mcc add, and a failure rolls the changes back. The profile directory, and so its login, is kept. (#24, #23)
  • [usage] show_email in ~/.mcc/config.toml, plus --show-email / --hide-email on mcc usage, to choose whether account emails are shown. (#24, #23)

Changed

  • mcc usage shows a compact table, one row per profile, instead of a block per profile: PROFILE, then the bar and percent used, time until reset and reset time for the 5-hour and weekly windows. On narrow terminals the reset time goes first, then bars shrink 10 → 5 → 0. (#24, #23)
  • mcc usage hides account emails by default, in the table and in --json (account is null). Use --show-email or [usage] show_email = true to show them. (#24, #23)
  • mcc add <old name> names the renamed profile that still uses that name's directory, instead of only saying that the directory exists. (#24, #23)

Fixed

  • mcc delete <old name> refuses to delete a directory that a renamed profile still uses. (#24, #23)

Full Changelog: v0.1.0...v0.2.0

Install

brew install luongnv89/tap/mcc

Or from source: see the README.