Additional Commands¶
What follows are additional clue commands in no particular order.
clue nose PACKAGE_NAME¶
You can run nosetests on any python package that is managed by clue.
For example:
$ clue nose cloudify-dsl-parser
This is (almost) equivalent to running
$ cd /path/to/cloudify-dsl-parser
$ nosetests --nocapture --nologcapture --verbose .
If you wish to use a directory relative to the basedir you can pass the test
property to the python part of the a repo configuration in inputs.yaml
repos:
cloudify-dsl-parser:
type: core
python:
test: dsl_parser/tests
Running
$ clue nose cloudify-dsl-parser
now, is (almost) equivalent to running:
$ cd /path/to/cloudify-dsl-parser
$ nosetests --nocapture --nologcapture --verbose dsl_parser/tests
Tip
Bash completion is available for python package names.
clue git diff¶
You can use clue git diff to perform an aggregated git diff command
on all repositories or only repositories that are part of the active feature
The clue git diff command supports two variants:
git diff [--cached]which can be used to perform a simplegit diffcommand on each repository.git diff LEFT..RIGHTwhich can be used to run agit diffcomparison between two branches or similar.
To run the diff command only on active feature repositories, pass the
--active/-a flag.
clue status¶
The clue status commands prints out details about the current clue
environment and details about the repositories dir and virtualenv root.
The output will look something like:
$ clue status
env:
current: main
editable: false
storage_dir: /home/dan/work/clue
outputs:
repositories: /home/dan/dev/cloudify
virtualenv: /home/dan/.virtualenvs/cloudify
The previous output is in fact valid yaml. You can pass --json/-j to get
the output in JSON format.