Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | hostinfo: add basic string matching for the search | Alexander Sulfrian | 2013-06-05 | 1 | -10/+27 |
| | |||||
* | Printer: add force argument to force to print at least an empty entry | Alexander Sulfrian | 2013-06-05 | 2 | -7/+14 |
| | | | | | | | | If you execute a search with negative matching the result could contain hosts without the field. Under normal circumstances the entry is not printed, because the filter_key does not exists. To get all the matching entries an new force mode is added to print at lease an empty entry. | ||||
* | hostinfo: add missing or | Alexander Sulfrian | 2013-06-05 | 1 | -1/+1 |
| | |||||
* | utils: new group_by interface for generic grouping | Alexander Sulfrian | 2013-06-05 | 3 | -30/+28 |
| | | | | | | | The old function _group_by has now an own module (hostinfo.utils) and got a slightly different interface. It is now used in all places, where a grouping of the different values is required (printing, searching, printing keys). | ||||
* | hostinfo: add filter for matching hosts | Alexander Sulfrian | 2013-06-05 | 1 | -4/+4 |
| | | | | | | With the filter argument only the specified key is printed for all matching hosts. The filter argument for searches, does work like the filter argument for normal queries. | ||||
* | hostinfo: add --details option | Alexander Sulfrian | 2013-06-05 | 2 | -5/+10 |
| | | | | | With --details the whole hostinfo entry is displayed for all matching hosts. | ||||
* | hostinfo: add --only-names option | Alexander Sulfrian | 2013-06-05 | 2 | -2/+9 |
| | | | | | | With the --only-names option only the hostnames of the matching hosts are printed. This is default with negative match (there is nothing to print if the key does not exists). | ||||
* | hostinfo: fix some pylint | Alexander Sulfrian | 2013-06-05 | 1 | -15/+18 |
| | |||||
* | hostinfo: add basic search mechanism | Alexander Sulfrian | 2013-06-05 | 1 | -11/+92 |
| | |||||
* | Printer: add possibility to add label on top level | Alexander Sulfrian | 2013-06-05 | 1 | -3/+6 |
| | |||||
* | hostinfo: migration from getopts to argparse | Alexander Sulfrian | 2013-06-05 | 3 | -56/+42 |
| | |||||
* | Printer: fix renaming of vserver-host to vserver_host0.1.11 | Alexander Sulfrian | 2013-06-03 | 1 | -4/+4 |
| | |||||
* | hostinfo: print keys of list elements0.1.10 | Alexander Sulfrian | 2013-05-29 | 1 | -3/+8 |
| | |||||
* | Printer: recursive printing of lists | Alexander Sulfrian | 2013-05-29 | 1 | -2/+8 |
| | | | | | | The elements of a list, are now also styled before printing. It is also possible to filter the elements. Currently it is used to display the special port information for the defined services. | ||||
* | Printer: allow to filter plain values | Alexander Sulfrian | 2013-05-29 | 1 | -1/+7 |
| | |||||
* | Printer: fix printing of empty dicts | Alexander Sulfrian | 2013-05-29 | 1 | -0/+3 |
| | |||||
* | Printer: refactoring the whole thing for better pylint result0.1.9 | Alexander Sulfrian | 2013-05-29 | 3 | -103/+174 |
| | |||||
* | bin/hostinfo: use realpath do find relativ lib path | Alexander Sulfrian | 2013-05-17 | 1 | -1/+1 |
| | | | | | Use os.path.realpath(__file__) to find the path of the script. This works also if executed via symlink. | ||||
* | bin/hostinfo: fix typo0.1.8 | Alexander Sulfrian | 2013-05-17 | 1 | -1/+1 |
| | |||||
* | contrib/bash-completion: add missing command line flags0.1.7 | Alexander Sulfrian | 2013-05-17 | 1 | -1/+2 |
| | |||||
* | bin/hostinfo: write error messages to stderr0.1.6 | Alexander Sulfrian | 2013-05-17 | 1 | -3/+2 |
| | |||||
* | bin/hostinfo: ignore HOSTINFO_PATH if its empty | Alexander Sulfrian | 2013-05-17 | 1 | -1/+1 |
| | | | | | | | | | If the environment variable HOSTINFO_PATH is an empty string it is now handled as if the variable is unset. With this you can overwrite a global value in the shell simply with the following command: HOSTINFO_PATH="" hostinfo ... | ||||
* | bin/hostinfo: add support for --hosts and --short | Alexander Sulfrian | 2013-05-17 | 2 | -6/+29 |
| | | | | | | | | You could now use --hosts to get a listing of all available hosts with in the current basepath (set by HOSTINFO_PATH or --path or the default value /usr/local/share/hostinfo/). If you use --short you will remove the domain spline.inf.fu-berlin.de from the output and you will get only the hostnames. | ||||
* | some code layout | Alexander Sulfrian | 2013-05-17 | 2 | -22/+22 |
| | |||||
* | hostinfo: basepath for the hostinfo files is configurable now | Alexander Sulfrian | 2013-05-17 | 2 | -15/+56 |
| | | | | | | | The basepath for the hostinfo files could now customized via the HOSTINFO_FILES environment variable or the --path, -p command line option. If nothing exists the default path /usr/local/share/hostinfo is used like before. | ||||
* | hostinfo: add help cmdline parameter | Alexander Sulfrian | 2013-05-17 | 2 | -7/+13 |
| | |||||
* | Printer: add more spaces for better structure of the output | Alexander Sulfrian | 2013-05-17 | 2 | -13/+32 |
| | | | | | The new output has more spaces for better readablility. If you want to get the old format you could use --nospaces or -n. | ||||
* | Printer: refactor the whole thing, add --verbose flag to show keys with ↵ | Alexander Sulfrian | 2013-05-17 | 2 | -105/+111 |
| | | | | value None | ||||
* | Printer: indent multiline values correctly0.1.5 | Alexander Sulfrian | 2013-05-16 | 1 | -0/+5 |
| | |||||
* | Printer: ignore vserver ips on vserver host | Alexander Sulfrian | 2013-05-16 | 1 | -0/+3 |
| | |||||
* | bin/hostinfo: add --keys to get valid keys for a host | Alexander Sulfrian | 2013-05-16 | 2 | -3/+26 |
| | | | | | The bash completion uses now a dynamic list of valid keys for a host and therefor calls the hostinfo tool itself. | ||||
* | bin/hostinfo: add --file to get the path of the yaml file with the information | Alexander Sulfrian | 2013-05-16 | 2 | -31/+39 |
| | |||||
* | bin/hostinfo: allow intermixing of option and non-option arguments | Alexander Sulfrian | 2013-05-08 | 1 | -1/+1 |
| | |||||
* | share/bash-completion: add simple bash-completion0.1.4 | Alexander Sulfrian | 2013-05-08 | 1 | -0/+20 |
| | |||||
* | hostinfo: add filter support for sub keys like addresses.eth00.1.3 | Alexander Sulfrian | 2013-05-08 | 1 | -26/+38 |
| | |||||
* | bin/hostinfo: add getopt for advanced parameter support | Alexander Sulfrian | 2013-05-08 | 1 | -10/+17 |
| | |||||
* | hostinfo: Prefix class, ports/addresses handling adjusted, new online mode | Alexander Sulfrian | 2013-05-08 | 2 | -28/+71 |
| | |||||
* | hostinfo/printer: new lables | Alexander Sulfrian | 2013-05-08 | 1 | -1/+3 |
| | |||||
* | bin/hostinfo: fix local lib import | Alexander Sulfrian | 2013-05-08 | 1 | -2/+4 |
| | |||||
* | bin/hostinfo: use development libraries if available0.1.2 | Alexander Sulfrian | 2013-05-06 | 1 | -1/+4 |
| | |||||
* | add setup.py0.1.1 | Alexander Sulfrian | 2013-05-06 | 4 | -1/+14 |
| | |||||
* | initial commit0.1.0 | Alexander Sulfrian | 2013-05-06 | 2 | -0/+133 |