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
. Usesq group prod
to
set the active group (whichsq ls
respects). See docs. sq group GROUP
sets the active group toGROUP
.sq group
returns the active group (default is/
, the root group).sq ls GROUP
lists the sources inGROUP
.sq ls --group
(orsq 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
ofsq 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 ofsq ping --all
, you can
dosq ping GROUP
, e.g.sq ping /
.