[obs-commits] [openSUSE/osc2] 57149c: - osc.cli.description: added initial support for a...
Branch: refs/heads/master Home: https://github.com/openSUSE/osc2 Commit: 57149c9087819477c080d1ad9791f6f2516d14b6 https://github.com/openSUSE/osc2/commit/57149c9087819477c080d1ad9791f6f2516d... Author: Marcus Huewe <suse-tux@gmx.de> Date: 2012-09-25 (Tue, 25 Sep 2012) Changed paths: M osc/cli/description.py Log Message: ----------- - osc.cli.description: added initial support for aliases Currently an alias can be specified like this: class ListAlias(List): """verbose list alias""" cmd = 'velist' opt_expand = copy.deepcopy(List.opt_expand) opt_expand.kwargs['default'] = True opt_verbose = copy.deepcopy(List.opt_verbose) opt_verbose.kwargs['default'] = True This defines a new command/alias "velist" which is identical to "osc2 list --verbose --expand"
participants (1)
-
Marcus Huewe