11 Commits

Author SHA1 Message Date
Matthieu Huin
677de34472 Add support for XDG-compliant config file
zuul-client will also look by default for the
$XDG_CONFIG_HOME/zuul/client.conf file when looking for user settings.

Change-Id: I60d59fceb1d4e4d767ca9e952a8ecc1630eba0a8
2021-06-01 10:34:01 +02:00
lotorev vitaly
a7ca41220c Clarify ~/.zuul.conf and --use-config option spelling
Change-Id: I9e75645f3ce028b088374f445078abce7243c069
2021-05-31 17:04:06 +02:00
Matthieu Huin
971b64deaa Improve logging and CLI output
Logging was incomplete, and unhelpful in case of an exception.
Add also a log_file parameter to the configuration file, so that
CLI actions can be logged to a file for audit.

Change-Id: Ifa7a2f2828fa38be8879a4a9c64fe948b95d5fb8
2021-05-20 16:08:00 +02:00
Matthieu Huin
49451a814a Add tenant as a config option
Allow user to set a tenant in one of the configuration file's
subsections, so that they don't have to provide the argument to the CLI
all the time.

Fix the API builds() call not building the API URL properly for a
white-labeled root URL.

Change-Id: Ib3b8b2be07ed580ac9f48738b9157a5d0e4d5e70
2021-04-23 23:19:52 +02:00
Zuul
aa0e776b1b Merge "Add builds subcommand" 2021-03-10 20:56:22 +00:00
Matthieu Huin
7908933545 Reorganize the installation documentation, specify versions
Move the PyPI installation method to the first place. Specify
which versions of zuul-client can be installed from PyPI or by
using containers.

Change-Id: I2e84473f84e06e350b87581d6edc61742653ace3
2021-01-29 16:28:25 +01:00
Matthieu Huin
dcef301d79 Add builds subcommand
Allow a user to search builds according to filtering criteria.

Change-Id: Ibde3730d00f623df7ff6716a034af88de89f4835
2021-01-19 15:15:50 +01:00
Matthieu Huin
30988f5725 Add more installation instructions
Change-Id: Ia1030072f469cdf211f1dbad6b306522460f270f
2020-12-17 11:41:52 +01:00
Matthieu Huin
5766ed1785 Add encrypt subcommand
zuul-client can be used to encrypt a secret that can be then used in a
project's jobs.
Also improve the documentation section about using a configuration file.

Change-Id: I10e56883f0b24ac429051af36f9bf58c7594c0ed
2020-10-13 15:40:45 +02:00
Matthieu Huin
ab852e407a Fix integration with Zuul before release
* Make default config files location a class attribute
* Add missing __init__.py file
* Fix incorrect parameter "change_ids" to "changes" in promote
* Add release notes to documentation

Change-Id: Ifdb6186e09cbc52cbcb1aea56863c25ddec22203
2020-09-24 18:01:42 +02:00
Matthieu Huin
0bc9db6c89 Initialize repository
Import doc, code, various boilerplate elements from zuul.
Add basic unit testing.

Change-Id: I44b78cd9d2a31fb62ddf4ffd56546066c5db2689
2020-09-09 18:07:46 +02:00