summaryrefslogtreecommitdiff
path: root/shell-completion
AgeCommit message (Collapse)Author
2018-01-10bash-completion: loginctl: add missing options and verbsYu Watanabe
2018-01-10bash-completion: localectl: add a missing option and verbsYu Watanabe
2018-01-10bash-completion: kernel-install: update default path to kernel imageYu Watanabe
2018-01-10bash-completion: journalctl add missing optionsYu Watanabe
Also, this deprecates '--this-boot' option.
2018-01-10bash-completion: hostnamectl: add a missing optionYu Watanabe
2018-01-10bash-completion: coredumpctl: support more optionsYu Watanabe
2018-01-10bash-completion: busctl: support more options and verbsYu Watanabe
2018-01-10bash-completion: bootctl: support more options and verbsYu Watanabe
2017-11-19Add license headers and SPDX identifiers to meson.build filesZbigniew Jędrzejewski-Szmek
So far I avoided adding license headers to meson files, but they are pretty big and important and should carry license headers like everything else. I added my own copyright, even though other people modified those files too. But this is mostly symbolic, so I hope that's OK.
2017-11-19Add SPDX license headers to shell completion scriptsZbigniew Jędrzejewski-Szmek
2017-10-12systemctl: clarify --global, --root and --runtime options (#7071)Lubomir Rintel
They're not only for enabling.
2017-10-05pass currently completed word to systemctl list-unit-files/list-units (#6927)g0tar
This change noticeably increases completion performance at the expense of preventing possible _correct, _approximate or any matcher-list rules. Still, responsiveness increase so huge seems to make it worth the price.
2017-10-04build-sys: s/ENABLE_RESOLVED/ENABLE_RESOLVE/Zbigniew Jędrzejewski-Szmek
The configuration option was called -Dresolve, but the internal define was …RESOLVED. This options governs more than just resolved itself, so let's settle on the version without "d".
2017-10-04build-sys: use #if Y instead of #ifdef Y everywhereZbigniew Jędrzejewski-Szmek
The advantage is that is the name is mispellt, cpp will warn us. $ git grep -Ee "conf.set\('(HAVE|ENABLE)_" -l|xargs sed -r -i "s/conf.set\('(HAVE|ENABLE)_/conf.set10('\1_/" $ git grep -Ee '#ifn?def (HAVE|ENABLE)' -l|xargs sed -r -i 's/#ifdef (HAVE|ENABLE)/#if \1/; s/#ifndef (HAVE|ENABLE)/#if ! \1/;' $ git grep -Ee 'if.*defined\(HAVE' -l|xargs sed -i -r 's/defined\((HAVE_[A-Z0-9_]*)\)/\1/g' $ git grep -Ee 'if.*defined\(ENABLE' -l|xargs sed -i -r 's/defined\((ENABLE_[A-Z0-9_]*)\)/\1/g' + manual changes to meson.build squash! build-sys: use #if Y instead of #ifdef Y everywhere v2: - fix incorrect setting of HAVE_LIBIDN2
2017-09-07analyze: add get-log-level, get-log-target verbsLucas Werkmeister
They’re counterparts to the existing set-log-level and set-log-target verbs, simply printing the current value to stdout. This makes it slightly easier to temporarily change the log level and/or target and then restore the old value(s).
2017-09-07shell-completion: add systemd-analyze set-log-targetLucas Werkmeister
The `systemd-analyze set-log-target` command was added in v227 (commit 2ca2a91cf1), but was missing from the shell completion specifications.
2017-07-28Merge pull request #6465 from keszybz/drop-kdbusMartin Pitt
Drop kdbus-dependent code
2017-07-27bash-completion: use the first argument instead of the global variable (#6457)Yu Watanabe
Without this fix: $ systemctl start <tab> Display all 135 possibilities? (y or n) $ __get_startable_units --system | wc -l 224 the number of the suggestions are quite different, as __get_startable_units --system does not filter already started units. With this fix, $ systemctl start <tab> Display all 135 possibilities? (y or n) $ __get_startable_units --system | wc -l 123 $ __get_template_names --system | wc -l 12 the number of the suggestions matches one the function returns. For consistency with the other internal functions, it should use the first argument instead of the global variable $mode. [zj: add commit message to make it sound like we know what we're doing]
2017-07-23Drop busname unit typeZbigniew Jędrzejewski-Szmek
Since busname units are only useful with kdbus, they weren't actively used. This was dead code, only compile-tested. If busname units are ever added back, it'll be cleaner to start from scratch (possibly reverting parts of this patch).
2017-07-18build-sys: drop gitignore patterns for in-tree buildsZbigniew Jędrzejewski-Szmek
... and other autotools-generated files.
2017-07-18build-sys: drop automake supportZbigniew Jędrzejewski-Szmek
v2: - also mention m4
2017-06-27Add networkctl label to man and shell completionZbigniew Jędrzejewski-Szmek
2017-06-06zsh: add completion for add-wants and add-requires (#6082)Felipe Sateler
2017-05-29shell-completion: add systemctl revert (#6042)Lucas Werkmeister
The `systemctl revert` command was added in v230 (commit 344ca7556b), but was missing from the shell completion specifications. Fixes #5978.
2017-05-07Add short-iso-precise for journalctl output (#5884)Ian Wienand
This adds a short-iso-precise option for journalctl output. It is similar to short-iso, but includes microseconds.
2017-05-02meson: use booleans for conf.set and drop unecessary conditionalsZbigniew Jędrzejewski-Szmek
Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted.
2017-04-23meson: reindent all files with 8 spacesZbigniew Jędrzejewski-Szmek
The indentation for emacs'es meson-mode is added .dir-locals. All files are reindented automatically, using the lasest meson-mode from git. Indentation should now be fairly consistent.
2017-04-23meson: use join_paths consistentlyMichael Biebl
With -Dsplit-usr=true, we set rootprefix to /. This leads to //lib/systemd or //lib/udev for various dir variables. Using join_paths() avoids this.
2017-04-23meson: build systemd using mesonZbigniew Jędrzejewski-Szmek
It's crucial that we can build systemd using VS2010! ... er, wait, no, that's not the official reason. We need to shed old systems by requring python 3! Oh, no, it's something else. Maybe we need to throw out 345 years of knowlege accumulated in autotools? Whatever, this new thing is cool and shiny, let's use it. This is not complete, I'm throwing it out here for your amusement and critique. - rules for sd-boot are missing. Those might be quite complicated. - rules for tests are missing too. Those are probably quite simple and repetitive, but there's lots of them. - it's likely that I didn't get all the conditions right, I only tested "full" compilation where most deps are provided and nothing is disabled. - busname.target and all .busname units are skipped on purpose. Otherwise, installation into $DESTDIR has the same list of files and the autoconf install, except for .la files. It'd be great if people had a careful look at all the library linking options. I added stuff until things compiled, and in the end there's much less linking then in the old system. But it seems that there's still a lot of unnecessary deps. meson has a `shared_module` statement, which sounds like something appropriate for our nss and pam modules. Unfortunately, I couldn't get it to work. For the nss modules, we need an .so version of '2', but `shared_module` disallows the version argument. For the pam module, it also didn't work, I forgot the reason. The handling of .m4 and .in and .m4.in files is rather awkward. It's likely that this could be simplified. If make support is ever dropped, I think it'd make sense to switch to a different templating system so that two different languages and not required, which would make everything simpler yet. v2: - use get_pkgconfig_variable - use sh not bash - use add_project_arguments v3: - drop required:true and fix progs/prog typo v4: - use find_library('bz2') - add TTY_GID definition - define __SANE_USERSPACE_TYPES__ - use join_paths(prefix, ...) is used on all paths to make them all absolute v5: - replace all declare_dependency's with [] - add more conf.get guards around optional components v6: - drop -pipe, -Wall which are the default in meson - use compiler.has_function() and compiler.has_header_symbol instead of the hand-rolled checks. - fix duplication in 'liblibsystemd' library name - use the right .sym file for pam_systemd - rename 'compiler' to 'cc': shorter, and more idiomatic. v7: - use ENABLE_ENVIRONMENT_D not HAVE_ENVIRONMENT_D - rename prefix to prefixdir, rootprefix to rootprefixdir ("prefix" is too common of a name and too easy to overwrite by mistake) - wrap more stuff with conf.get('ENABLE...') == 1 - use rootprefix=='/' and rootbindir as install_dir, to fix paths under split-usr==true. v8: - use .split() also for src/coredump. Now everything is consistent ;) - add rootlibdir option and use it on the libraries that require it v9: - indentation v10: - fix check for qrencode and libaudit v11: - unify handling of executable paths, provide options for all progs This makes the meson build behave slightly differently than the autoconf-based one, because we always first try to find the executable in the filesystem, and fall back to the default. I think different handling of loadkeys, setfont, and telinit was just a historical accident. In addition to checking in $PATH, also check /usr/sbin/, /sbin for programs. In Fedora $PATH includes /usr/sbin, (and /sbin is is a symlink to /usr/sbin), but in Debian, those directories are not included in the path. C.f. https://github.com/mesonbuild/meson/issues/1576. - call all the options 'xxx-path' for clarity. - sort man/rules/meson.build properly so it's stable
2017-02-28hostname: add 'convertible' chassis typeDavid Herrmann
Add the 'convertible' type to the set of allowed chassis. This applies to all devices that can be transformed by the user from laptop style to tablet style. This does not add any auto-detection, yet. It only makes 'set-chassis' accept 'convertible' as valid input.
2017-02-24shell-completion: include the new coredumpctl optionsGiedrius Statkevičius
2017-02-14shell_completion: Add -r option for coredumpctlNamhyung Kim
2017-02-02systemctl: restore --failed (#5198)Zbigniew Jędrzejewski-Szmek
'systemctl --failed' is an extremely common operation and it's nice to have a shortcut for it. Revert "man: don't document systemctl --failed" and add the option back to systemctl's help and shell completion scripts. This reverts commit 036359ba8d0aba7db7eac75d10073a849a033fd1.
2017-01-27zsh-completion: _journalctl fixes (#5165)llua
allow _journalctl to work when the rcquotes option is set, broken in ba89f80620d619867b4838973785d529c5a959f6. allow the completion of --file multiple times, which ba89f80620d619867b4838973785d529c5a959f6 claims is true. Fixes #4842
2017-01-25bash-completion: add support for --now (#5155)Jan Synacek
2017-01-21Fixi caching in zsh completion (#5122)Александр Тихонов
I found several issues with zsh completion code: 1. typo in cache filename: "SYS_ALL_PROPRTIES", so cache just not loading from this file 2. cache stored in one file, despite user or system mode. So it can be loaded later in wrong mode 3. most serious problem: broken logic - it retrieves cache when _cache_invalid is true How to reproduce: type "systemctl --user status <TAB>" and you will see user units. Then press control+C and type "systemctl --system status <TAB>" in same session and you'll see user units again
2017-01-21bash_completion: journalctl: Complete -t option valuesNamhyung Kim
The -t or --identifier requires a syslog identifier.
2017-01-21bash_completion: journalctl: add missing optionsNamhyung Kim
The --no-hostname and --vacuum-files were missing, add them.
2017-01-11shell-completion: redirect all errors from systemctl to /dev/nullZbigniew Jędrzejewski-Szmek
Completion scripts should not generate errors, ever. https://bugzilla.redhat.com/show_bug.cgi?id=1409649
2016-12-23zsh-completion: fix typo and rephrase option hints (#4963)Doug Christman
2016-11-03analyze: add syscall-filter verbZbigniew Jędrzejewski-Szmek
This should make it easier for users to understand what each filter means as the list of syscalls is updated in subsequent systemd versions.
2016-10-17zsh-completion: fix for #4318 (#4394)llua
Escape unit names for the eval call in _call_program The value of the Id property is transformed back into a unit name usable by systemctl. system-systemd\x5cx2dcryptsetup.slice -> system-systemd\x2dcryptsetup.slice Also filter units by property via parameter expansion, not a for loop
2016-10-11Merge pull request #4115 from yuwata/completion-fixLennart Poettering
bash-completion: systemctl: do not pass masked or not-found units to filter
2016-09-14shell-completion: add --wait to systemd-run completions (#4140)Davide Cavalca
2016-09-14bash-completion: systemctl: use local variablesYu Watanabe
2016-09-09bash-completion: systemctl: do not pass masked or not-found units to filterYu Watanabe
Also, add new function __filter_units_by_properties() for filtering units by multiple properties, and make __get_startable_units() use it. fixes #4114
2016-09-02shell-completion: add systemd-resolve --status (#4085)Marcos Mello
From be371fe.
2016-08-16zsh: _journalctl: also handle --root arg and --key=value style (#3956)Daniel Hahler
This will now also handle `journalctl --directory=/var/log/journal` properly.
2016-08-16zsh: _journalctl: do not complete exclusive modes (#3957)Daniel Hahler
After `journalctl -D /var/log/journal` "--directory", "--file", "--machine" and "--root" should not be available for completion, because they are exclusive. But multiple `--file` arguments are allowed.
2016-08-13zsh: _systemctl: do not attempt to use "--system" by default (#3951)Daniel Hahler
In 68c4f6d the following was added: local -a _modes; _modes=("--user" "--system") local _sys_service_mgr=${${words:*_modes}[(R)(${(j.|.)_modes})]:---system} With the following comment: > If neither are on the line, --system is set; for system services to be > completed. But it does not work as documented: % _modes=(--user --system) % words=() % echo ${${words:*_modes}[(R)(${(j.|.)_modes})]:---system} However, it should not use `--system` in that case anyway, so this patch removes the part that should cause a default to be used and adds some comments.