summaryrefslogtreecommitdiffstats
path: root/shell-completion (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cryptenroll: Add support for unlocking through TPM2 enrollmentsGabríel Arthúr Pétursson2024-02-011-0/+4
|
* nspawn: optionally tint the background color of a containerLennart Poettering2024-01-231-1/+1
|
* Merge pull request #31019 from poettering/hostnamed-full-os-releaseLennart Poettering2024-01-231-1/+1
|\ | | | | hostnamed: expose full /etc/os-release data in hostnamectl's --json= output
| * hostnamectl: add -j switch for quick json outputLennart Poettering2024-01-221-1/+1
| | | | | | | | | | | | | | We already support -j as shortcut for JSON mode in various tools. Let's add one more. We probably should add this systematically (at least where it doesn't conflict with an existing -j switch with other purpose). But I am too lazy to add that now.
* | shell-completion/zsh: complete hidden images when word starts with "."Ivan Shapovalov2024-01-231-1/+6
| | | | | | | | | | | | | | Show hidden images in the completion results, but only if the current word starts with ".", such that - `machinectl clone <Tab>` will only offer non-hidden images, but - `machinectl clone .<Tab>` will offer both hidden and non-hidden images
* | shell-completion/zsh: improve and expand machinectl completionIvan Shapovalov2024-01-231-22/+101
|/
* bash-completion: add missing options to systemd-dissectAntonio Alvarez Feijoo2024-01-191-1/+3
|
* bash-completion: add missing options to systemd-cryptenrollAntonio Alvarez Feijoo2024-01-191-3/+6
|
* loginctl: add --json= and -j, decouple list-* from --output=Mike Yuan2024-01-171-2/+5
| | | | | --output= is documented to only affect journal output in *-status. Let's use --json= and -j standard options for list-* instead.
* shell-completion: add new systemd-id128 optionsFrantisek Sumsal2024-01-111-2/+12
|
* analyze: fix -q optionAntonio Alvarez Feijoo2024-01-091-1/+1
| | | | Follow-up to 52117f5af831a816c47ceebb83c8244ee93b72fe
* shell-completion: provide completion for journalctl --namespace=Frantisek Sumsal2024-01-052-1/+13
| | | | Resolves: #30381
* shell-completion: fix mixed indentFrantisek Sumsal2024-01-051-1/+1
|
* journalctl: implement --list-namespacesFrantisek Sumsal2024-01-052-1/+3
| | | | | Apart from being useful on its own, this will be used in the following commit for shell completions.
* journalctl: add --exclude-identifier optionSergei Zhmylev2024-01-041-4/+4
|
* bash completion: add systemd-analyze architecturesLuca Boccassi2023-12-271-0/+12
| | | | Follow-up for fb8cc599ed863502d67
* bash completion: make systemctl mount-image/bind autocomplete on active servicesLuca Boccassi2023-12-271-1/+13
| | | | | | The verb works only on running service units, so complete on that as the first parameter, and a local file as the second. The other parameters are inside the service namespace so we can't autocomplete from the outside, return early.
* bash completion: add systemctl service-log-level/targetLuca Boccassi2023-12-271-0/+18
|
* bash-completion: add missing option to systemd-confextArthur Zamarin2023-12-211-1/+10
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bash-completion: add missing option to systemd-cglsArthur Zamarin2023-12-211-1/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bash-completion: add missing option to systemd-catArthur Zamarin2023-12-211-2/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* meson: Always build bootctlDaan De Meyer2023-10-252-2/+2
| | | | | | | | bootctl is rather useful to have, even if on a system without UEFI, as it has a number of verbs that are unrelated to UEFI (e.g kernel-identify), and more importantly, it supports --root to operate on directory trees (which could be intended to be deployed on UEFI) so let's make sure we always build it.
* bash-completion: add missing commands and options to systemd-dissectAntonio Alvarez Feijoo2023-09-251-12/+32
|
* zsh: busctl: fix flags parsing for propertiesRonan Pigott2023-09-091-2/+2
| | | | | | | | | | | I'm not quite sure what the original intent of this line was, but it doesn't work in the one call-site the "required" argument is actually used. The "writable" flag was indexed as a scalar leaving only the "e" to compare against. Instead, let's just sort the parsed flags and compare the whole thing. Also substitute "required" as a pattern, so that pattern based comparisons may be supported.
* shell-completions: add missing systemctl verbs/optionsFrantisek Sumsal2023-09-041-7/+19
| | | | Resolves: #29048
* shell-completions: code cleanupFrantisek Sumsal2023-09-041-13/+15
|
* zsh: reintroduce pattern argument to uncached verbsRonan Pigott2023-08-081-6/+24
| | | | | | | | | | | | | | | | | | | | | | The systemctl completion previously made use of PREFIX as a pattern argument to list-unit-files and list-units. This had the problem of erroneously filtering the results that were stored in the cache, and erroneously filtering results that might have been requested according to the users configuration (e.g. _correct completer, certain matcher-lists or tag-orders, etc.). Unfortunately, the runtime of list-unit-files increases when no pattern argument is provided, and systemctl show, used to filter those units, can become unacceptably slow when provided with too many units to describe. Let's re-introduce the pattern argument to list-unit-files and list-units where necessary in order to alleviate these bottlenecks without poisining the cache. A 'use-pattern' style is introduced that may be used to disable this behavior if it is undesired. We can still expect that certain completions, like `systemctl start <TAB>` will be slow, like before. To fix this we will need systemd to learn a more efficient way of filtering the units than parsing systemctl show.
* zsh: use sys_really_all_units for non-template namesRonan Pigott2023-08-081-4/+4
| | | | | | The systemctl invocations used for these completions match the ones used for the _sys_really_all_units parameter, so we should really just use the cached parameter rather than recomputing the result.
* Drop split-usr and unmerged-usr supportLuca Boccassi2023-07-282-2/+2
| | | | | | | | | | As previously announced, execute order 66: https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html The meson options split-usr, rootlibdir and rootprefix become no-ops that print a warning if they are set to anything other than the default values. We can remove them in a future release.
* shell-completion: include units in 'verify' completionsFrantisek Sumsal2023-07-241-14/+11
| | | | Resolves: #28500
* zsh: use glob matching for template namesRonan Pigott2023-07-201-1/+4
| | | | | | Template names can be learned from the filesystem, so there isn't a need to parse the output of systemctl list-unit-files in this case. This should accelerate the completion of some verbs like enable.
* zsh: remove unit property cachingRonan Pigott2023-07-191-7/+3
| | | | | | | The existing caching policy isn't very sensible for this cache. We could write a different policy, but I don't think there is much value in caching these values, as in my experience the command used to generate them is quick.
* zsh: update default caching policy for unitsRonan Pigott2023-07-191-12/+5
| | | | | | | | | | | | | | | | | | | | | | | The existing caching policy was completely bogus. In the first stanza, despite the comment, the pattern given would consider the cache invalid if it was more than 1 hour old. The second stanza was also incorrect, since the output of `systemctl --all` is not unit file paths, but unit names. When they were being tested against the cachefile mtime, the test would always fail becuase of the nonexistant file (hopefully). In fact it's not very useful to test if the unit files have newer mtime in this case anyway, since we are only caching their names. Also, `systemctl --all` is an unfortunately slow operation to be used in testing for the cache validity — we want this operation to at least be faster than rebuilding the cache. I've rewritten this stanza with my best guess at its original intent. It now checks against the mtime of the parent directories in the search path, which should be updated and cause the cache to rebuild when we add, remove, or rename any unit files.
* zsh: stop forcing unit file cache rebuildsRonan Pigott2023-07-181-4/+2
| | | | | | Rebuilding whenever the cached parameter is not set forces each new shell to rebuild the cache, which often defeates the purpose of caching in the first place.
* zsh: default to system manager when not specifiedRonan Pigott2023-07-181-3/+2
| | | | | | | | | This used to work correctly, before the change was reverted in e09d0d46c297. In fact it is important to specify the manager explicity in the completion because the argument is reused in the caching policies. An empty argument here caused the completion to create separate caches with and without the --system parameter. We can simplify the given pattern a little here too.
* zsh: suppress aliases and shell functions when calling systemctlRonan Pigott2023-07-181-1/+1
| | | | | This prevents any errors in case the user had aliased some arguments following systemctl.
* zsh: typo in systemctl completionsRonan Pigott2023-07-181-1/+1
|
* shell-completion: add show-cache to bashLuca Boccassi2023-07-071-1/+1
|
* shell-completion: add whoami to bashLuca Boccassi2023-07-071-1/+1
|
* shell-completion: add soft-reboot to bashLuca Boccassi2023-07-071-1/+1
|
* shell-completion/zsh/resolvectl: add show-cacheChristian Hesse2023-07-071-0/+1
| | | | Make zsh shell-completion aware of show-cache.
* shell-completion/zsh/systemctl: add whoamiChristian Hesse2023-07-071-0/+1
| | | | Make zsh shell-completion aware of whoami.
* shell-completion/zsh/systemctl: add soft-rebootChristian Hesse2023-07-071-0/+1
| | | | Make zsh shell-completion aware of soft-reboot.
* detect-virt: add --list-cvm optionDaniel P. Berrangé2023-07-061-1/+1
| | | | | | | | The --list-cvm option reports the known types of confidential virtualization technology that can be detected. Related: https://github.com/systemd/systemd/issues/27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* detect-virt: add --cvm optionDaniel P. Berrangé2023-07-061-1/+1
| | | | | | | | The --cvm option detects whether the OS is running inside a confidential virtual machine. Related: https://github.com/systemd/systemd/issues/27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* resolved: added serve stale feature implementation of RFC 8767Kiran Vemula2023-06-161-1/+1
| | | | | | | serve stale feature to keep the DNS resource records beyond TTL to return them as stale records in case of upstream server is not reachable or returns negative response. SD_RESOLVED_NO_STALE flag has been added to disable serving stale records via dbus. added serve stale test cases to TEST-75-RESOLVED Fixes: #21815
* Merge pull request #26728 from keszybz/meson-updateLennart Poettering2023-06-131-1/+1
|\ | | | | Meson version update
| * meson: bump required version to 0.56.0Yu Watanabe2023-06-121-1/+1
| |
* | Fix zsh completion for "localectl set-locale"Cyril Roelandt2023-06-071-1/+1
|/ | | | | | | | | | | | | | | | | | When running: $ localectl set-locale LC_MESSAGES=<TAB> One is prompted with a list of locale fields instead of the list of valid locales. This is because by calling "compset -P1 '*='", we modify the $PREFIX special parameter before testing whether it contains an equal sign. Therefore if [[ -prefix 1 *\= ]] is always false, and we always suggest a list of locale fields to the user. Fixes: #27955
* udev: downgrade log level about style issuesYu Watanabe2023-06-052-1/+2
| | | | And add --no-style switch that make style issues not critical.