2017-04-20 09:04:17 +00:00
|
|
|
# Generating amtool artifacts
|
|
|
|
|
2017-12-22 10:17:13 +00:00
|
|
|
Amtool comes with the option to create a number of ease-of-use artifacts that can be created.
|
2017-04-20 09:04:17 +00:00
|
|
|
|
2017-12-22 10:17:13 +00:00
|
|
|
## Shell completion
|
2017-04-20 09:04:17 +00:00
|
|
|
|
2017-12-22 10:17:13 +00:00
|
|
|
A bash completion script can be generated by calling `amtool --completion-script-bash`.
|
2017-04-20 09:04:17 +00:00
|
|
|
|
|
|
|
The bash completion file can be added to `/etc/bash_completion.d/`.
|
|
|
|
|
|
|
|
## Man pages
|
|
|
|
|
2017-12-22 10:17:13 +00:00
|
|
|
A man page can be generated by calling `amtool --help-man`.
|
|
|
|
|
2017-04-20 09:04:17 +00:00
|
|
|
Man pages can be added to the man directory of your choice
|
|
|
|
|
2017-12-22 10:17:13 +00:00
|
|
|
amtool --help-man > /usr/local/share/man/man1/amtool.1
|
2017-04-20 09:04:17 +00:00
|
|
|
sudo mandb
|
|
|
|
|
|
|
|
Then you should be able to view the man pages as expected.
|