Commit graph

549 commits

Author SHA1 Message Date
Tomas Kopecek
a3edb7a4b9 Return mistakenly dropped option (--keytab)
PR https://pagure.io/koji/pull-request/3051 was wrongly merged
https://pagure.io/koji/c/071533206e6d29f665d7a5864eda75087488a3ce?branch=master
and deleted wrong line. Reverting it.

Fixes: https://pagure.io/koji/issue/3171
2021-12-14 14:16:05 +01:00
Ken Dreyer
071533206e cli: mention --profile in --config help text
It's easy for new users to confuse the "--config" and "--profile"
settings.

We want to guide users towards using non-default profile names (eg
"stream" or "cbs", etc) where possible. If a user is pointing at a
non-standard configuration file location, they should really use the
--profile option also to keep their configuration sane.

Update the --help text for the --config option to emphasize the
--profile option.
2021-10-26 11:21:58 +02:00
Jana Cupova
32b5377392 Remove translation stub functions
Fixes: https://pagure.io/koji/issue/3072
2021-10-21 13:25:16 +02:00
Tomas Kopecek
97503b7492 fix option propagation 2021-09-14 13:26:11 +02:00
Ken Dreyer
c6ad839942 cli: improve --config and --profile help text
Move "--profile" to the top of the argument list so it's easier to see
in --help. Most users should use --profile instead of --config.

Explain what the default --profile value is (it's progname).

Reword the "--config" help text to explain that this overrides a
profile's settings using a separate configuration file.
2021-08-16 13:41:07 +02:00
Tomas Kopecek
0f56d39487 remove deprecated --ca option
Fixes: https://pagure.io/koji/issue/2192
2020-11-23 11:03:38 +01:00
Tomas Kopecek
2518e8106f cli: fix tests
Related: https://pagure.io/koji/issue/1870
2020-10-06 14:58:15 +02:00
Tomas Kopecek
34f2cbd272 cli: load plugins also from /usr/lib64
Fixes: https://pagure.io/koji/issue/2524
2020-10-06 14:23:22 +02:00
Tomas Kopecek
c0ffe4ed27 cli: propagate system exit codes
Fixes: https://pagure.io/koji/issue/2273
2020-09-15 16:11:01 +02:00
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
9afe5e3866 fix flake8 2020-05-22 09:36:21 +02:00
Yu Ming Zhu
21ff8143c4 warning for both cli and config file option 2020-05-18 09:29:04 +02:00
Yu Ming Zhu
80cf5ac94a deprecated warning for cli option --ca as well
fixes: #2182
2020-05-18 09:29:04 +02:00
Tomas Kopecek
c636f56526 update comments 2020-05-13 10:45:37 +02:00
Tomas Kopecek
0e5b54f32d cli: deprecate --ca
Fixes: https://pagure.io/koji/issue/2182
2020-05-13 10:45:37 +02:00
Yuming Zhu
cf34706f04 use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1 flake8: apply E501 with max-line-length=99 2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7 flake8: apply all rest E7 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b flake8: apply E2 rules except E266 2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af flake8: apply E1 rules 2020-03-03 21:38:21 +08:00
Yuming Zhu
97cfaa4fcf flake8: follow E265 rule 2020-03-03 21:35:08 +08:00
Yu Ming Zhu
5b83c682e4 remove unused imports 2019-12-12 11:00:58 +00:00
Yu Ming Zhu
8c21aa7e6d sort imports in cli 2019-12-12 11:00:57 +00:00
Pat Riehecky
0c15978110 cli: add option for custom cert location 2019-07-11 17:54:01 -04:00
Mike McLean
8834bb6d6b shorten help text 2019-07-11 15:18:15 -04:00
Yu Ming Zhu
1ec14ec5dc adjust cli plugin config description 2019-07-11 15:18:15 -04:00
Yuming Zhu
ded43dec53 cli: also load plugins from ~/.koji/plugins
- add plugin_path in koji.conf
- add `--plugin-paths` in cli arguments

fixes: #887
2019-07-11 15:18:15 -04:00
Tomas Kopecek
15421a5637 put fix_pyver before printing command help
If pyver forces koji to reload under different interpreter, it could
happen, that different set of plugins is available. In such case help
printed under original interpreter can be misleading.

Fixes: https://pagure.io/koji/issue/1276
2019-06-14 16:15:08 -04:00
Daniel Rodríguez
2f503070c3 Replace references to latest-pkg with latest-build
Replace latest-pkg with latest-build in common commands and
documentation. References to latest-pkg are removed where
latest-build is also present. Also, command description for
latest-build is updated to match the current one.
2019-04-10 17:23:18 -04:00
Tomas Kopecek
70968aba33 Remove python2.4 OptionParse fix
Fixes: https://pagure.io/koji/issue/1341
2019-03-20 16:09:44 -04:00
Franz Chih-Ping Hsieh
f356ac4f17 force using python2 to run script
Fixes #945
2018-05-24 00:01:30 -04:00
Tomas Kopecek
1b07d95ccf print debug and error messages to stderr
Fixes: https://pagure.io/koji/issue/671
2018-04-24 17:01:51 -04:00
Tomas Kopecek
64202285b2 don't fail on CLI plugins without docstrings
Related: https://pagure.io/koji/issue/644
2017-10-30 21:36:18 -04:00
Mike McLean
ea89245352 allow profiles to request a specific python version 2017-09-18 16:26:55 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Tomas Kopecek
2f42c28286 python 2.6 doesn't know named components 2017-06-27 15:45:20 +02:00
Yuming Zhu
6fe90a170d unit tests for cli.load_plugins 2017-06-22 11:59:28 -04:00
Yuming Zhu
617241bcc1 use six.class_types instead of ClassType, TypeType in cli 2017-06-22 11:59:28 -04:00
Yuming Zhu
e64c57e866 fix StringType and itervalues in plugin and cli 2017-06-22 11:59:28 -04:00
Tomas Kopecek
519f792ce2 strip .py from module name 2017-06-16 10:55:08 +02:00
Tomas Kopecek
df6aadec59 remove CLI plugins config options 2017-06-13 14:53:39 +02:00
Tomas Kopecek
c15c553048 fix entry path 2017-06-13 11:42:04 +02:00
Tomas Kopecek
37bcef025c cleanup after automatic split 2017-06-13 11:42:04 +02:00
Tomas Kopecek
81b2b36d07 apply split 2017-06-13 11:20:38 +02:00
Tomas Kopecek
c5f910ffd9 list-channels CLI command
Related: https://pagure.io/koji/issue/437
2017-06-07 14:51:28 -04:00
Tomas Kopecek
e5ac8557e9 Fix traceback for missing update 2017-06-06 10:41:13 -04:00
Tomas Kopecek
0f6a9fdcf3 honor --quiet in list-tagged
Related: https://pagure.io/koji/issue/452
2017-06-06 10:38:46 -04:00
Tomas Kopecek
c0fccab2b7 correct sort() usage 2017-06-01 09:39:24 +02:00
Tomas Kopecek
d625c0aa4d remove changes not relevant to cli 2017-06-01 09:39:24 +02:00
Tomas Kopecek
d2ab86584a explicit unicode in cli 2017-06-01 09:39:24 +02:00