1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-11 07:06:16 +01:00
Commit Graph

24 Commits

Author SHA1 Message Date
Marco Strigl
81d221242b
Merge pull request #767 from Vogtinator/completion
Completion usability improvements
2020-03-23 13:36:31 +01:00
Fabian Vogt
ee44164bf1 Discard stderr of the completion script
Otherwise it pollutes the terminal with warnings and errors such as
"interrupted!", which makes the terminal line unusable.
2020-03-13 15:36:08 +01:00
Fabian Vogt
e11b49e2f1 Fetch list of all projects lazily
Currently osc <TAB><TAB> takes a long time to complete, which is incredibly
annoying. Only run "osc ls" if it is necessary for proper completion.
2020-03-13 15:32:29 +01:00
lethliel
49c1e9e8ff command substitution should be done by compgen
which is much faster.

builtin compgen -W "${list[*]}" -- "${cur}" | sed -r "s@^${colon_word}@@g"
--> 1 minute 20 seconds

builtin compgen -W 'cat ${projects}' -- "${cur}" | sed -r "s@^${colon_word}@@g"
--> 4 seconds
2020-03-08 20:29:06 +01:00
Matthias Bach
a91bec1df9 Fix Bash completion if PWD contains whitespace
The script used ${PWD} without proper quoting causing Bash completion
to not work properly if there was whitespace in the path of the current
working directory.
2018-03-10 20:35:24 +01:00
Marco Strigl
68f10bdb14 integrated comments command 2017-03-07 08:42:21 +01:00
Marco Strigl
4893049312 added commands for constraints/worker checking 2016-12-30 14:10:35 +01:00
Jim McDonough
b9a53e3527 Fix spelling of --separate-requests 2016-08-16 11:40:34 -04:00
Olaf Hering
9aee047a25 Check for existance of .oscrc before collecting alias
Signed-off-by: Olaf Hering <olaf@aepfle.de>
2016-07-28 12:32:58 +02:00
Werner Fink
e2699d9fc3 Allow osc to be called as isc and iosc
Signed-off-by: Werner Fink <werner@suse.de>
2015-06-24 20:37:04 +02:00
Werner Fink
9f76dc0777 Do not strip colon from COMP_WORDBREAKS (bnc#915037)
Work around the libreadline colon trouble if COMP_WORDBREAKS includes the colon as regular word break. Side effect is that user now do not see the full project name anymore but only the subprojects.

Signed-off-by: Werner Fink <werner@suse.de>
2015-06-24 20:35:41 +02:00
Michael Ikey Doherty
450cf54240 Support --download-api-only in bash-completion 2014-05-15 17:48:11 +02:00
Michael Ikey Doherty
5519938392 Support .kiwi files for bash-completion
This commit enables osc to provide completion for both .spec and .kiwi
files, and ensures no ugly "not found" messages are displayed in the
terminal due to globbing.
2014-04-03 12:06:47 +01:00
Werner Fink
08a9505042 Make completion for osc smart
that is more commands, more options, and backgrounding the update
of the project cache.

Signed-off-by: Werner Fink <werner@suse.de>
2013-05-21 20:11:33 +02:00
Danny Kukawka
553ed13518 updated osc.complete, added all existing commands to list 2010-07-28 16:53:24 +02:00
4db40e23f5 support OBS 2.0 "unresolvable" state, former expansion error state is still supported. 2010-04-23 14:38:34 +02:00
Pavol Rusnak
8d551e0a69 fix whitespace 2010-02-28 02:30:13 +01:00
Pavol Rusnak
661d927d38 code cleanup 2009-10-20 14:30:15 +00:00
Dr. Werner Fink
25e874b31e Add prjresults and results to completion 2009-07-10 11:32:17 +00:00
Dr. Werner Fink
99479b7ff9 Fix bug in rdiff completion ifor using --oldpkg 2009-07-02 13:10:53 +00:00
Dr. Werner Fink
eac23410b5 add completion support for osc search 2009-07-01 15:51:34 +00:00
Dr. Werner Fink
d0af05c108 add maintainer support for completion 2009-07-01 15:34:05 +00:00
Dr. Werner Fink
8f10292166 Fix bug bnc#518173 and make osc.complete fit new syntax 2009-07-01 13:04:19 +00:00
751d3afb27 import Werner Finks shell completion scripts 2009-06-18 09:20:07 +00:00