Commit Graph

36 Commits

Author SHA1 Message Date
Simon McVittie
9eb824f863 Add a Meson build system
Resolves: https://github.com/flatpak/flatpak/issues/2241
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-10-24 16:12:14 +01:00
a1346054
59e86dd754 completion: bash completion files are not supposed to be executable
Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
2021-08-23 12:19:03 +02:00
gasinvein
4b0a87e16b Remove debugging from fish completion 2020-03-31 18:24:26 +03:00
gasinvein
620aae77df Add fish shell completion 2020-03-31 18:16:52 +03:00
Thayne McCombs
95ca8a8232 Add zsh completion script
Fixes #103

Closes: #1727
Approved by: alexlarsson
2018-05-29 08:17:26 +00:00
Matthew Leeds
9d9758c36d completion: Only show files with the correct prefix
Currently flatpak's bash completion is a bit broken. It shows all files
with the appropriate extension (.flatpak or .flatpakref) rather than
just the ones starting with the characters you've already typed. So this
commit fixes that behavior by using the -X compgen option rather than
-G. For example, here's the old behavior:

$ flatpak install e<TAB>
bijiben.flatpak  eos              eos-runtimes
builder.flatpak  eos-apps         eos-sdk

and here's the new behavior:

$ flatpak install e<TAB>
eos            eos-apps       eos-runtimes   eos-sdk
$ flatpak install b<TAB>
bijiben.flatpak  builder.flatpak

Closes: #1645
Approved by: alexlarsson
2018-05-14 07:35:26 +00:00
Matthew Leeds
037a13cde0 completion: Make filename completions smarter
Many flatpak commands only work on *.flatpak or *.flatpakref files, so
the bash auto completion showing every file is distracting and
unnecessary. This commit makes flatpak only show relevant files when
possible by using the "-G globpattern" compgen option.
2017-09-12 16:14:43 +02:00
Alexander Larsson
8533f06dc0 Add more completions 2016-05-30 14:54:22 +02:00
Alexander Larsson
eeaa832095 Replace bash completion shell script with C-based version
This doesn't do everything yet, but its got the basics covered.
2016-05-27 16:30:13 +02:00
Alexander Larsson
8abbc0186e Rename everything but the on-disk location to flatpak 2016-05-09 11:11:55 +02:00
Alexander Larsson
e908ef6788 completion: Fix typo 2016-05-03 15:03:11 +02:00
Alexander Larsson
554a0237b9 completion: Remove use of old cli commands 2016-05-03 15:02:43 +02:00
Alexander Larsson
7fb1309488 completion: Update to the new cli commands 2016-01-13 17:55:11 +01:00
Alexander Larsson
7e4d838011 completion: Fix completion for xdg-app run
This was broken because run didn't take --user or --system
2015-12-10 11:28:54 +01:00
Alexander Larsson
2afc3349b1 completion: Fix completion of apps/runtimes in a remote
The name of the commandline operation changed to ls-remotes.
2015-12-10 11:15:51 +01:00
Alexander Larsson
d9a03f4f4d Drop dump-runtime command for now
This idea was not fully baked, so we should not expose it. We can
ressurect it later when we know better how this would be used.
2015-11-11 10:59:59 +01:00
Alexander Larsson
8cc65ba1b7 Add completion for bundle ops 2015-11-11 10:45:56 +01:00
Alexander Larsson
b25830d8f9 Add xdg-app dump-runtime command
This creates a tar of the runtime as set up by xdg-app
2015-09-28 10:48:47 +02:00
Alexander Larsson
97ef439f59 bash_completion: Properly list apps when completing "run" 2015-09-24 21:36:35 +02:00
Alexander Larsson
41af86dc69 Add xdg-app enter command
This lets you enter a sandbox and run a command there, which is useful
for debugging purposes.
2015-09-24 19:23:24 +02:00
Alexander Larsson
eec8798f5e document portal: Add support for transient documents
These are useful for passing temporary files.
2015-09-17 20:09:50 +02:00
Alexander Larsson
df79d571a5 bash completion: Update to match the lastest options 2015-09-17 17:45:13 +02:00
Alexander Larsson
e0e23ee181 Add make-app-current 2015-03-11 10:25:15 +01:00
Alexander Larsson
5bfee405b1 Add metadata option to limit DRI access 2015-03-05 15:55:36 +01:00
Alexander Larsson
7017710201 Apply metadata and --allow --forbid switches in xdg-app build 2015-02-13 10:57:56 +01:00
Alexander Larsson
72f1bd9b07 Merge pull request #50 from matthiasclasen/run-env2
Add an --allow option to the run command
2015-02-10 09:25:08 +01:00
Matthias Clasen
f184fbb603 Improve completion
The options of the add-remote command were not being completed.
2015-02-09 17:40:37 +01:00
Matthias Clasen
34dda64b95 Add a --title option to repo-update
This stores a human-readable title in the additional metadata
of the repo summary. We use xa.title as the key.
2015-02-09 17:17:19 +01:00
Matthias Clasen
c07e917b5d Add --allow option to the run command
Allow to fully override the environment settings from the
application metadata. This can be useful for testing.
2015-02-09 13:24:19 +01:00
Matthias Clasen
a2f9562989 Teach completion about --runtime 2015-02-08 11:32:17 +01:00
Matthias Clasen
c313cafbae Add a --forbid option to run
This allows to restrict the access that the app gets out of
the sandbox. We allow an access if the app requests it (in its
metadata) and the user doesn't forbid it (with this option).
2015-02-06 17:39:20 +01:00
Matthias Clasen
6c2f2fafa1 Add completion for repo-update 2015-01-24 22:01:57 -05:00
Alexander Larsson
97747a3e53 Merge pull request #37 from matthiasclasen/user-option
Add a --system option to go with --user
2015-01-23 15:47:06 +01:00
Matthias Clasen
22f8740951 Some updates to the bash completion
Add the --system option and also --keep-ref for the uninstall
commands.
2015-01-23 08:23:08 -05:00
Matthias Clasen
47f0ff20cd Make completion work installed
I only tested this uninstalled, by directly sourcing the
completion file, obviously...
2015-01-23 06:07:18 -05:00
Matthias Clasen
b0d9a08bb1 Add bash completion 2015-01-23 00:52:20 -05:00