Skip to content

Releases

v0.2.2

Choose a tag to compare

@pi0 pi0 released this 01 Apr 18:26

compare changes

🚀 Enhancements

  • Support subcommand aliases (#236)
  • Add plugin system (#238)
  • Support default sub command (#156)

🩹 Fixes

  • main: Allow user-defined -h, --help, -v, --version args (#234)
  • Resolve alias value over default (#228)
  • Subcommand resolution incorrectly consumes flag values (#231)
  • Coerce parsed arg values to match declared types (#239)

💅 Refactors

  • Improve usage tips (#198)

📖 Documentation

  • Add usage section (#70)
  • Add example setup and cleanup option (#188)

✅ Tests

  • Reproduce issue with short option (alias) and = (#230)
  • parser: Add regression tests for hyphen-prefixed string values (#171)

❤️ Contributors

v0.2.1

Choose a tag to compare

@pi0 pi0 released this 12 Feb 13:08

compare changes

🩹 Fixes

  • Propagate --no- negation to aliases and main option (#225)

🏡 Chore

  • Fix readme formatting (#223)
  • Use oxlint and oxfmt (f1d05f4)

❤️ Contributors

v0.2.0

Choose a tag to compare

@pi0 pi0 released this 20 Jan 11:51

compare changes

Note

🌟 citty is now zero dependency reducing install size from 267kB to 22.8kB

🚀 Enhancements

  • Support hidden meta to hide command (#111)
  • Support enum arg type (#83)
  • Support negativeDescription for args (#40)
  • ⚠️ Parsed optionals and enum type safety (#174)

🩹 Fixes

  • ⚠️ Conditionally print negative boolean argument usage (#177)
  • types: Value type of NumberArgDef should be number (#183)
  • Show cli error message (#186)
  • Allow number arg to be optional (#194)

💅 Refactors

  • Show error once (#167)
  • More strict types (f597897)
  • ⚠️ Use node:util.parseArgs for arg parsing (#218)
  • Use simple console formatting (#219)

📦 Build

🏡 Chore

✅ Tests

  • Add unit tests for internal utils (#77)
  • Add test for args (#160)
  • Add test for runMain (#162)
  • Add test for usage (#161)
  • Add test for parser (#192)
  • Add test for subcommand (#191)

❤️ Contributors

v0.1.6

Choose a tag to compare

@pi0 pi0 released this 14 Feb 13:09

compare changes

🩹 Fixes

  • usage: Render valueHint for positional args (dbd1d92)

❤️ Contributors

  • Pooya Parsa (@pi0)

v0.1.5

Choose a tag to compare

@pi0 pi0 released this 20 Nov 15:31

compare changes

🚀 Enhancements

  • command: Return result of run command (#101)
  • runMain: Support custom showUsage option (#74)

❤️ Contributors

v0.1.4

Choose a tag to compare

@pi0 pi0 released this 09 Sep 12:39

compare changes

🚀 Enhancements

  • Support cleanup hook (#64)
  • Add createMain utility (#65)
  • Support --version (#67)

🩹 Fixes

  • Do not throw an error when no subcommand is specified but the main has run (#58)

❤️ Contributors

v0.1.3

Choose a tag to compare

@pi0 pi0 released this 24 Aug 17:35

compare changes

🩹 Fixes

  • Allow string[] in arg signature (#56)

🏡 Chore

  • Typo in readme (#45)
  • Update dependencies (f863f9d)

🤖 CI

  • Use conventional commit for autofix action (#50)

❤️ Contributors

v0.1.2

Choose a tag to compare

@pi0 pi0 released this 05 Jul 23:29

compare changes

🚀 Enhancements

  • usage: Resolve sub commands for meta description (#32)
  • Use consola for output formatting (bf5de7f)
  • runCommand: Allow passing custom data (4abc848)

🩹 Fixes

  • Fix generic type issues (#38)
  • Handle required: false for positional arguments (ab0401b)

🏡 Chore

❤️ Contributors

v0.1.1

Choose a tag to compare

@pi0 pi0 released this 03 Apr 10:18

compare changes

🩹 Fixes

  • Remove sub-command name when resolving nested (47398f1)
  • Type untyped args as string|boolean
  • Move deps to devDependencies (#20)
  • Fix unspecified arg types (d1d769b)

❤️ Contributors

v0.1.0

Choose a tag to compare

@pi0 pi0 released this 31 Mar 15:13
761f235

compare changes

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)