README.md in hieracles-0.1.4 vs README.md in hieracles-0.1.5
- old
+ new
@@ -81,10 +81,11 @@
-b <basepath> default ./
-e <encdir>
-v - displays version
-y <fact_file> - facts in yaml format
-j <fact_file> - facts in json format
+ -i - interactive mode
About facts aka. scope
------------------------
@@ -97,11 +98,10 @@
- `-j <fact_file>` same as above, but with output of `facter -j`
You can define a default scope in your configuration file `defaultscope` in `~/.confg/hieracles/config.yml`. For example:
---
- colors: true
classpath: farm_modules/%s/manifests/init.pp
hierafile: dev/hiera-local.yaml
encpath: enc
defaultscope:
operatingsystem: Debian
@@ -111,25 +111,31 @@
- the config file
- if `-y <file>` option (or `-j`) is present the `defaultscope` in the config file will be totally ignored
- the `-p key=value` option with overide variable per variable
+Note that if the scope var is not defined or if the file declared in hiera config is not found, this entry is silently ignored.
+An option, `-i` enables the `interactive mode` in which you are prompted to fill up for undefined scope variables encountered in the hiera config file. This behavior can be made systematic by enabling `interactive: true` in hieracles configuration file.
+
+
Completion
-------------
There is a simple zsh completion file in `tools/completion`.
If you use [oh-my-zsh][omz] put it in `~/.oh-my-zsh/completions`
wget -O ~/.oh-my-zsh/completions/_hc https://raw.githubusercontent.com/Gandi/hieracles/master/tools/completion/_hc
echo 'compdef _hc hc "bundle exec hc"' >> ~/.zshrc
-
+ echo 'autoload -U _hc' >> ~/.zshrc
+
Otherwise
mkdir ~/.zsh-completions
wget -O ~/.zsh-completions/_hc https://raw.githubusercontent.com/Gandi/hieracles/master/tools/completion/_hc
echo 'fpath=(~/.zsh-completions $fpath)' >> ~/.zshrc
echo 'compdef _hc hc "bundle exec hc"' >> ~/.zshrc
+ echo 'autoload -U _hc' >> ~/.zshrc
Debian packaging
--------------------
On a Jessie