File tree Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ cross_platform = 2to3 \
125
125
_flamegraph \
126
126
fprintd-delete \
127
127
fprintd-enroll \
128
+ free \
128
129
freeciv \
129
130
freeciv-server \
130
131
function \
Original file line number Diff line number Diff line change
1
+ # bash completion for free(1) -*- shell-script -*-
2
+
3
+ _comp_cmd_free ()
4
+ {
5
+ local cur prev words cword comp_args
6
+ _comp_initialize -- " $@ " || return
7
+
8
+ local noargopts=' !(-*|*[cs]*)'
9
+ case $prev in
10
+ --help | --version | --count | --seconds | -${noargopts} [hVcs])
11
+ return
12
+ ;;
13
+ esac
14
+
15
+ if [[ $cur == -* ]]; then
16
+ _comp_compgen_help || _comp_compgen_usage
17
+ fi
18
+ } &&
19
+ complete -F _comp_cmd_free free
20
+
21
+ # ex: filetype=sh
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ EXTRA_DIST = \
182
182
test_fprintd_enroll.py \
183
183
test_fprintd_list.py \
184
184
test_fprintd_verify.py \
185
+ test_free.py \
185
186
test_freebsd_update.py \
186
187
test_freeciv.py \
187
188
test_freeciv_server.py \
Original file line number Diff line number Diff line change
1
+ import pytest
2
+
3
+
4
+ class TestFree :
5
+ @pytest .mark .complete ("free " )
6
+ def test_basic (self , completion ):
7
+ assert not completion
8
+
9
+ @pytest .mark .complete ("free -" , require_cmd = True )
10
+ def test_options (self , completion ):
11
+ assert completion
Original file line number Diff line number Diff line change 103
103
fold
104
104
fprintd-enroll
105
105
fprintd-verify
106
+ free
106
107
freeciv
107
108
freeciv-server
108
109
fusermount
You can’t perform that action at this time.
0 commit comments