github neilotoole/sq v0.33.0

latest releases: v0.48.3, v0.48.2, v0.48.1...
13 months ago

The headline feature is source groups.
This is the biggest change to the sq CLI in some time, and should make working with lots of sources much easier.

Added

  • #192: sq now has a mechanism to group sources. A source handle can
    now be scoped. For example, instead of @sakila_prod, @sakila_staging, etc,
    you can use @prod/sakila, @staging/sakila. Use sq group prod to
    set the active group (which sq ls respects). See docs.
  • sq group GROUP sets the active group to GROUP.
  • sq group returns the active group (default is /, the root group).
  • sq ls GROUP lists the sources in GROUP.
  • sq ls --group (or sq ls -g) lists all groups.
  • sq mv moves/renames sources and groups.

Changed

  • sq ls now shows the active item in a distinct color. It no longer adds
    an asterisk to the active item.
  • sq ls now sorts alphabetically when using --table format.
  • sq ls now shows the sources in the active group only. But note that
    the default active group is / (the root group), so the default behavior
    of sq ls is the same as before.
  • sq add hello.csv will now generate the handle @hello instead of @hello_csv.
    On a second invocation, it will return @hello1 instead of @hello_csv_1. Why
    this change? Well, with the availability of the source group mechanism, the _ character
    in the handle somehow looked ugly. And more importantly, _ is a relative pain to type.
  • sq ping has changed to support groups. Instead of sq ping --all, you can
    do sq ping GROUP, e.g. sq ping /.

Don't miss a new sq release

NewReleases is sending notifications on new releases.