From 9c6f52156691e4a1549e2211a46438934ca40b23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Behrmann?= Date: Tue, 1 Oct 2024 10:01:55 +0200 Subject: [PATCH] docs: Add missing documentation for the completion verb --- mkosi/config.py | 1 + mkosi/resources/man/mkosi.1.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mkosi/config.py b/mkosi/config.py index 9da510dd0..ac6e8a306 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3404,6 +3404,7 @@ def create_argument_parser(chdir: bool = True) -> argparse.ArgumentParser: mkosi [options…] {b}journalctl{e} [command line…] mkosi [options…] {b}coredumpctl{e} [command line…] mkosi [options…] {b}documentation{e} [manual] + mkosi [options…] {b}completion{e} [shell] mkosi [options…] {b}clean{e} mkosi [options…] {b}serve{e} mkosi [options…] {b}bump{e} diff --git a/mkosi/resources/man/mkosi.1.md b/mkosi/resources/man/mkosi.1.md index 84ead0690..f131f77a3 100644 --- a/mkosi/resources/man/mkosi.1.md +++ b/mkosi/resources/man/mkosi.1.md @@ -177,6 +177,10 @@ The following command line verbs are known: appropriate search path for man pages. The man page can be generated from the markdown file `mkosi/resources/man/mkosi.1.md` e.g via `pandoc -t man -s -o mkosi.1 mkosi.1.md`. +`completion` +: Generate shell completion for the shell given as argument and print it to stdout. The arguments `bash`, + `fish`, and `zsh` are understood. + `dependencies` : Output the list of packages required by mkosi to build and boot images. -- 2.47.2