summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* More python 3 adaptionHEADmasterJonah Brüchert2024-04-162-12/+10
|
* Just hardcode version numberJonah Brüchert2024-04-162-45/+2
|
* Add type hintsJonah Brüchert2024-04-164-52/+57
|
* 2to3Jonah Brüchert2024-04-164-15/+18
|
* Printer: fix unicode support0.2.2Alexander Sulfrian2014-12-031-1/+1
|
* utils: handle None values in group_by0.2.1Alexander Sulfrian2013-07-101-0/+3
|
* hostinfo: add -V and --version to get the version0.2.0Alexander Sulfrian2013-06-054-2/+64
| | | | | The version is generated from the git-tags during build (setup.py) or during run time, if executed from the git repository.
* hostinfo: _match and _match_key are now private functionsAlexander Sulfrian2013-06-051-8/+8
|
* hostinfo: add basic string matching for the searchAlexander Sulfrian2013-06-051-10/+27
|
* Printer: add force argument to force to print at least an empty entryAlexander Sulfrian2013-06-052-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 orAlexander Sulfrian2013-06-051-1/+1
|
* utils: new group_by interface for generic groupingAlexander Sulfrian2013-06-053-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 hostsAlexander Sulfrian2013-06-051-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 optionAlexander Sulfrian2013-06-052-5/+10
| | | | | With --details the whole hostinfo entry is displayed for all matching hosts.
* hostinfo: add --only-names optionAlexander Sulfrian2013-06-052-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 pylintAlexander Sulfrian2013-06-051-15/+18
|
* hostinfo: add basic search mechanismAlexander Sulfrian2013-06-051-11/+92
|
* Printer: add possibility to add label on top levelAlexander Sulfrian2013-06-051-3/+6
|
* hostinfo: migration from getopts to argparseAlexander Sulfrian2013-06-053-56/+42
|
* Printer: fix renaming of vserver-host to vserver_host0.1.11Alexander Sulfrian2013-06-031-4/+4
|
* hostinfo: print keys of list elements0.1.10Alexander Sulfrian2013-05-291-3/+8
|
* Printer: recursive printing of listsAlexander Sulfrian2013-05-291-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 valuesAlexander Sulfrian2013-05-291-1/+7
|
* Printer: fix printing of empty dictsAlexander Sulfrian2013-05-291-0/+3
|
* Printer: refactoring the whole thing for better pylint result0.1.9Alexander Sulfrian2013-05-293-103/+174
|
* bin/hostinfo: use realpath do find relativ lib pathAlexander Sulfrian2013-05-171-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.8Alexander Sulfrian2013-05-171-1/+1
|
* contrib/bash-completion: add missing command line flags0.1.7Alexander Sulfrian2013-05-171-1/+2
|
* bin/hostinfo: write error messages to stderr0.1.6Alexander Sulfrian2013-05-171-3/+2
|
* bin/hostinfo: ignore HOSTINFO_PATH if its emptyAlexander Sulfrian2013-05-171-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 --shortAlexander Sulfrian2013-05-172-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 layoutAlexander Sulfrian2013-05-172-22/+22
|
* hostinfo: basepath for the hostinfo files is configurable nowAlexander Sulfrian2013-05-172-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 parameterAlexander Sulfrian2013-05-172-7/+13
|
* Printer: add more spaces for better structure of the outputAlexander Sulfrian2013-05-172-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 Sulfrian2013-05-172-105/+111
| | | | value None
* Printer: indent multiline values correctly0.1.5Alexander Sulfrian2013-05-161-0/+5
|
* Printer: ignore vserver ips on vserver hostAlexander Sulfrian2013-05-161-0/+3
|
* bin/hostinfo: add --keys to get valid keys for a hostAlexander Sulfrian2013-05-162-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 informationAlexander Sulfrian2013-05-162-31/+39
|
* bin/hostinfo: allow intermixing of option and non-option argumentsAlexander Sulfrian2013-05-081-1/+1
|
* share/bash-completion: add simple bash-completion0.1.4Alexander Sulfrian2013-05-081-0/+20
|
* hostinfo: add filter support for sub keys like addresses.eth00.1.3Alexander Sulfrian2013-05-081-26/+38
|
* bin/hostinfo: add getopt for advanced parameter supportAlexander Sulfrian2013-05-081-10/+17
|
* hostinfo: Prefix class, ports/addresses handling adjusted, new online modeAlexander Sulfrian2013-05-082-28/+71
|
* hostinfo/printer: new lablesAlexander Sulfrian2013-05-081-1/+3
|
* bin/hostinfo: fix local lib importAlexander Sulfrian2013-05-081-2/+4
|
* bin/hostinfo: use development libraries if available0.1.2Alexander Sulfrian2013-05-061-1/+4
|
* add setup.py0.1.1Alexander Sulfrian2013-05-064-1/+14
|
* initial commit0.1.0Alexander Sulfrian2013-05-062-0/+133