summaryrefslogtreecommitdiff
path: root/vendor/github.com/proglottis
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-05-16 21:01:52 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-05-18 18:28:22 +0200
commit3b0844f990c6b7de708eeec1f8dfdc7e7d4611bd (patch)
tree1132b206bf7a98a79efe2b7de37f737b72207c18 /vendor/github.com/proglottis
parent3d8a1f91731b7935ae5239023d588a028dcd51e8 (diff)
downloadpodman-3b0844f990c6b7de708eeec1f8dfdc7e7d4611bd.tar.gz
podman-3b0844f990c6b7de708eeec1f8dfdc7e7d4611bd.tar.bz2
podman-3b0844f990c6b7de708eeec1f8dfdc7e7d4611bd.zip
shell completion --format: add help to function with args
From a template users POV it is not importent when they use a struct field or method. They only notice the difference when the function requires arguments. So lets be nice and let the user know that this method requires arguments via the help text. This is how it now looks like when the completion descriptions are enabled on bash: ``` $ bin/podman ps --format {{.Created.A {{.Created.AddDate (This is a function and requires 3 arguments) {{.Created.After (This is a function and requires 1 argument) {{.Created.Add (This is a function and requires 1 argument) {{.Created.AppendFormat (This is a function and requires 2 arguments) ``` Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'vendor/github.com/proglottis')
0 files changed, 0 insertions, 0 deletions