summaryrefslogtreecommitdiffstats
path: root/shell-completion (follow)
Commit message (Collapse)AuthorAgeFilesLines
* meson: reindent all files with 8 spacesZbigniew Jędrzejewski-Szmek2017-04-242-83/+79
| | | | | | | 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.
* meson: use join_paths consistentlyMichael Biebl2017-04-242-2/+2
| | | | | 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.
* meson: build systemd using mesonZbigniew Jędrzejewski-Szmek2017-04-242-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* hostname: add 'convertible' chassis typeDavid Herrmann2017-02-282-2/+2
| | | | | | | | | 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.
* shell-completion: include the new coredumpctl optionsGiedrius Statkevičius2017-02-242-1/+3
|
* shell_completion: Add -r option for coredumpctlNamhyung Kim2017-02-142-1/+3
|
* systemctl: restore --failed (#5198)Zbigniew Jędrzejewski-Szmek2017-02-022-1/+2
| | | | | | | | | '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.
* zsh-completion: _journalctl fixes (#5165)llua2017-01-271-2/+2
| | | | | | 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
* bash-completion: add support for --now (#5155)Jan Synacek2017-01-251-1/+1
|
* Fixi caching in zsh completion (#5122)Александр Тихонов2017-01-211-9/+9
| | | | | | | | | | 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
* bash_completion: journalctl: Complete -t option valuesNamhyung Kim2017-01-211-0/+3
| | | | The -t or --identifier requires a syslog identifier.
* bash_completion: journalctl: add missing optionsNamhyung Kim2017-01-211-2/+2
| | | | The --no-hostname and --vacuum-files were missing, add them.
* shell-completion: redirect all errors from systemctl to /dev/nullZbigniew Jędrzejewski-Szmek2017-01-112-2/+2
| | | | | | Completion scripts should not generate errors, ever. https://bugzilla.redhat.com/show_bug.cgi?id=1409649
* zsh-completion: fix typo and rephrase option hints (#4963)Doug Christman2016-12-231-4/+4
|
* analyze: add syscall-filter verbZbigniew Jędrzejewski-Szmek2016-11-032-0/+7
| | | | | This should make it easier for users to understand what each filter means as the list of syscalls is updated in subsequent systemd versions.
* zsh-completion: fix for #4318 (#4394)llua2016-10-171-9/+5
| | | | | | | | | 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
* Merge pull request #4115 from yuwata/completion-fixLennart Poettering2016-10-111-7/+34
|\ | | | | bash-completion: systemctl: do not pass masked or not-found units to filter
| * bash-completion: systemctl: use local variablesYu Watanabe2016-09-141-7/+3
| |
| * bash-completion: systemctl: do not pass masked or not-found units to filterYu Watanabe2016-09-091-6/+37
| | | | | | | | | | | | | | Also, add new function __filter_units_by_properties() for filtering units by multiple properties, and make __get_startable_units() use it. fixes #4114
* | shell-completion: add --wait to systemd-run completions (#4140)Davide Cavalca2016-09-142-1/+3
|/
* shell-completion: add systemd-resolve --status (#4085)Marcos Mello2016-09-021-2/+2
| | | From be371fe.
* zsh: _journalctl: also handle --root arg and --key=value style (#3956)Daniel Hahler2016-08-161-4/+13
| | | | This will now also handle `journalctl --directory=/var/log/journal` properly.
* zsh: _journalctl: do not complete exclusive modes (#3957)Daniel Hahler2016-08-161-4/+4
| | | | | 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.
* zsh: _systemctl: do not attempt to use "--system" by default (#3951)Daniel Hahler2016-08-131-1/+3
| | | | | | | | | | | | | | | | | | | | | 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.
* zsh: _journalctl: improve support for handling mode args (#3952)Daniel Hahler2016-08-131-3/+17
| | | | | | | | | | This only completes fields from `journalctl --user` in _journal_fields when `--user` is used. It also changes $_sys_service_mgr to include both `--system` and `--user`, because `journalctl` behaves different from `systemctl` in this regard. No attempt is made to filter out invalid combinations, e.g. when using both `--directory` and `--system` (see https://github.com/systemd/systemd/issues/3949).
* zsh: _journalctl: handle --user in _journal_noneDaniel Hahler2016-08-111-1/+3
| | | | | | | This uses the same mechanism from _systemctl to inject `--user` into the `journalctrl -F _EXE` call to list executables. Before this patch the "commands" section would list executables from system units always.
* zsh: _filter_units_by_property: respect --userDaniel Hahler2016-08-111-1/+1
| | | | | | | Use `$_sys_service_mgr` to handle `--user`, so that `systemctl --user stop` will correctly filter the active (user) units. Before this patch, only user units that also exist as system units and are stoppable there would be listed.
* journalctl: add new output mode "short-full" (#3880)Lennart Poettering2016-08-043-3/+3
| | | | | | | | | | | This new output mode formats all timestamps using the usual format_timestamp() call we use pretty much everywhere else. Timestamps formatted this way are some ways more useful than traditional syslog timestamps as they include weekday, month and timezone information, while not being much longer. They are also not locale-dependent. The primary advantage however is that they may be passed directly to journalctl's --since= and --until= switches as soon as #3869 is merged. While we are at it, let's also add "short-unix" to shell completion.
* doc,core: Read{Write,Only}Paths= and InaccessiblePaths=Alessandro Puccetti2016-07-192-4/+4
| | | | | | | | | | | This patch renames Read{Write,Only}Directories= and InaccessibleDirectories= to Read{Write,Only}Paths= and InaccessiblePaths=, previous names are kept as aliases but they are not advertised in the documentation. Renamed variables: `read_write_dirs` --> `read_write_paths` `read_only_dirs` --> `read_only_paths` `inaccessible_dirs` --> `inaccessible_paths`
* zsh-completion: fix option ordering in set-x11-keymap (#3646)ntzrmtthihu7772016-07-151-2/+2
|
* nspawn-completion: implementation of shell completion of --notify-ready (#3679)Alessandro Puccetti2016-07-082-1/+7
| | | Relative to: https://github.com/systemd/systemd/pull/3474
* machinectl: Added stop as alias for poweroff (#3406)Christian Rebischke2016-06-062-1/+2
|
* bash: use the actual journal fields used in the journal files for completionLennart Poettering2016-05-301-13/+3
|
* tree-wide: remove uses of --failedZbigniew Jędrzejewski-Szmek2016-05-092-3/+2
| | | | It has been replaced by --state=failed.
* zsh-completion: remove non-portable uses of \s in awk (#3063)Felipe Sateler2016-04-192-2/+2
|
* Add zsh completion for networkctl (#3062)Felipe Sateler2016-04-181-0/+35
|
* bash completion: add --template to nspawnEvgeny Vereshchagin2016-03-201-2/+2
|
* systemd-resolve: initial shell completionZbigniew Jędrzejewski-Szmek2016-02-183-1/+132
| | | | | | | | v2: - use /sys/class/net to list interfaces, also copy the same code to systemd-nspawn v3: - do not propose "any" twice for --type
* cgroup: remove support for NetClass= directiveDaniel Mack2016-02-101-1/+1
| | | | | | | | | | | | | | | | | | | Support for net_cls.class_id through the NetClass= configuration directive has been added in v227 in preparation for a per-unit packet filter mechanism. However, it turns out the kernel people have decided to deprecate the net_cls and net_prio controllers in v2. Tejun provides a comprehensive justification for this in his commit, which has landed during the merge window for kernel v4.5: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd1060a1d671 As we're aiming for full support for the v2 cgroup hierarchy, we can no longer support this feature. Userspace tool such as nftables are moving over to setting rules that are specific to the full cgroup path of a task, which obsoletes these controllers anyway. This commit removes support for tweaking details in the net_cls controller, but keeps the NetClass= directive around for legacy compatibility reasons.
* Journalctl command completion should show machinesDan Walsh2016-02-081-2/+11
|
* shell-completion: fix headerZbigniew Jędrzejewski-Szmek2016-02-061-1/+1
|
* systemctl: rename "reload-or-try-restart" verb to "try-reload-or-restart"Lennart Poettering2016-01-282-4/+4
| | | | | | | | But also keep the old name as (undocumented) compatibility around. The reload-or-try-restart was documented to be a NOP if the unit is not running, since the previous commits this is also implemented. The old name suggests that the "try" logic only applies to restarting. Fix this, by moving the "try-" to the front, to indicate that the whole option is a NOP if the service isn't running.
* zsh-completion: Escape results for `journalctl --unit`Douglas Christman2016-01-261-1/+4
| | | | | | | | Escape colons and backslashes in unit names. This gives correct completions for units with names like systemd-backlight@backlight:acpi_video0.service and systemd-fsck@dev-disk-by\x2duuid-...
* importd: drop dkr supportLennart Poettering2015-12-102-4/+2
| | | | | | | | The current code is not compatible with current dkr protocols anyway, and dkr has a different focus ("microservices") than nspawn anyway ("whole machine containers"), hence drop support for it, we cannot reasonably keep this up to date, and it creates the impression we'd actually care for the microservices usecase.
* bash-completion: list valid signal namesEvgeny Vereshchagin2015-11-243-3/+6
| | | | this is a follow-up for commit 18540892d18addc4dcb81
* bash-completion: list only valid signal namesZbigniew Jędrzejewski-Szmek2015-11-241-1/+2
| | | | Fixup for #1999.
* bash-completion: nspawn: add completion for --kill-signalEvgeny Vereshchagin2015-11-231-1/+4
|
* shell-completion: journalctl: add --syncMarcos Mello2015-11-151-1/+1
| | | From 94b6551
* execute: Add new PassEnvironment= directiveFilipe Brandenburger2015-11-112-2/+2
| | | | | | | | | | | | | | | | | | | | This directive allows passing environment variables from the system manager to spawned services. Variables in the system manager can be set inside a container by passing `--set-env=...` options to systemd-spawn. Tested with an on-disk test.service unit. Tested using multiple variable names on a single line, with an empty setting to clear the current list of variables, with non-existing variables. Tested using `systemd-run -p PassEnvironment=VARNAME` to confirm it works with transient units. Confirmed that `systemctl show` will display the PassEnvironment settings. Checked that man pages are generated correctly. No regressions in `make check`.
* shell-completion: journalctl: add -S and -U optionsMarcos Mello2015-11-111-1/+1
| | | Added by 66f5292