Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: unjs/citty

v0.2.0

20 Jan 11:51
@pi0 pi0

Choose a tag to compare

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

14 Feb 13:09
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • usage: Render valueHint for positional args (dbd1d92)

❤️ Contributors

  • Pooya Parsa (@pi0)

v0.1.5

20 Nov 15:31
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

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

❤️ Contributors

v0.1.4

09 Sep 12:39
@pi0 pi0

Choose a tag to compare

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

24 Aug 17:35
@pi0 pi0

Choose a tag to compare

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

05 Jul 23:29
@pi0 pi0

Choose a tag to compare

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

03 Apr 10:18
@pi0 pi0

Choose a tag to compare

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

31 Mar 15:13
@pi0 pi0
761f235

Choose a tag to compare

compare changes

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)

v0.0.2

28 Mar 18:12
@pi0 pi0

Choose a tag to compare

🚀 Enhancements

  • setup hook (#9)
  • Allow accessing args with camelCase or kebabCase (#17)
  • Basic type inference for args (#1)

🩹 Fixes

  • Correctly parse positional arguments (#16)
  • Allow any args type for SubCommandsDef (60d218d)

🏡 Chore

❤️ Contributors