livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.53k stars 182 forks source link

Rewrote the commander package to use colon-based commands #400

Closed matthewmueller closed 1 year ago

matthewmueller commented 1 year ago

A little while back, I realized that using colon-based commands instead of space-based commands was better. There are two advantages:

  1. Clearer difference between args and commands.
  2. Allows flags and args after the command to be in any order.

I wanted to make this breaking change early before too many people were using bud.

This change also preps us for custom commands.

Breaking changes:

  1. bud new controller is now bud new:controller.
  2. The tool subcommand was removed, e.g. bud tool cache clean becomes bud cache:clean.

Deprecated changes and additions:

  1. bud create <dir> has been deprecated in favor of bud new <dir>.