Commit Graph

1428 Commits

Author SHA1 Message Date
Alexander Larsson
fb6238347a Merge pull request #14 from matthiasclasen/list-runtimes
Commands to list applications and runtimes
2015-01-15 20:09:20 +01:00
Matthias Clasen
60e6b99f53 Update example in list-runtimes docs 2015-01-15 13:58:56 -05:00
Matthias Clasen
b50d64914b Incorporate review comments
Use g_file_get_child instead of g_file_resolve_relative_path
in a few places, and reduce the scope of some variables.
2015-01-15 13:57:27 -05:00
Alexander Larsson
cc92b892fe Merge pull request #16 from matthiasclasen/list-repos2
List repos2
2015-01-15 16:02:20 +01:00
Matthias Clasen
f7ff733071 Document list-repos command 2015-01-15 06:13:49 -05:00
Matthias Clasen
3759de6e7f Add a list-repos command
This is very similar to the ostree remote list command.
2015-01-15 06:12:08 -05:00
Alexander Larsson
c763716c6a Fix typo in docs s/-remo/-repo/ 2015-01-15 09:15:15 +01:00
Alexander Larsson
79a9753b96 Merge pull request #15 from matthiasclasen/error-handling
Some error handling fixes for the run command. I just tried to put
2015-01-15 09:14:05 +01:00
Alexander Larsson
c453f1643b Merge pull request #12 from matthiasclasen/usage-error
Avoid many copies of usage_error function
2015-01-15 09:12:49 +01:00
Alexander Larsson
b8c3e45b3c Merge pull request #11 from matthiasclasen/double-dot
Fix a typo
2015-01-15 09:12:20 +01:00
Alexander Larsson
b1ebfab22a Merge pull request #10 from matthiasclasen/delete-repo-docs
Document the delete-repo command
2015-01-15 09:12:03 +01:00
Alexander Larsson
0d13e2c5e1 Merge pull request #9 from matthiasclasen/run-help
Improve --branch help text for the run comment
2015-01-15 09:10:47 +01:00
Alexander Larsson
97a503ecf5 Merge pull request #8 from matthiasclasen/run-docs
Complete the documentation for the run command
2015-01-15 09:10:24 +01:00
Matthias Clasen
418ba95ef9 Trivial spelling fix 2015-01-14 22:41:56 -05:00
Matthias Clasen
dac709ef1d Handle exec error correctly
exec(1) states that exec will only return in case of an error,
and the return value is -1. Therefore, if (!execv(...)) doesn't
make sense.
2015-01-14 22:37:54 -05:00
Matthias Clasen
77a3259083 Don't ignore lack of command key
We were ignoring the error if command is missing or defective,
and could end up in a situation where neither opt_command nor
default_command are set, causing us to pass NULL into execve
for an unexpected shell. Fix that.
2015-01-14 22:16:56 -05:00
Matthias Clasen
85288750e6 Prevent an error pileup
Unfortunately, g_key_file_get_string can set error and still
return non-NULL (e.g if the value contains unsupported escape
sequences).
2015-01-14 22:11:19 -05:00
Matthias Clasen
6947034c8e Document the list-apps command 2015-01-14 21:39:13 -05:00
Matthias Clasen
c1e19dab8e Simplify the list-app/runtime output
Show the triples in the same format in which they appear in
metadata files: name/arch/branch.
2015-01-14 21:34:59 -05:00
Matthias Clasen
778071f9ba Add a list-apps command 2015-01-14 21:31:39 -05:00
Matthias Clasen
04260718e4 Factor out the printing code into separate functions
We will reuse this for listing applications in the future.
2015-01-14 21:25:37 -05:00
Matthias Clasen
c12b71dc36 Document the list-runtimes command 2015-01-14 21:08:02 -05:00
Matthias Clasen
459e15a820 Add a list-runtimes command
This allows to list the installed runtimes, optionally showing
arches and branches in addition to names.
2015-01-14 20:56:25 -05:00
Matthias Clasen
e295608165 Avoid many copies of usage_error function
No need to have the identical static function in every
builtin command.
2015-01-14 18:49:34 -05:00
Matthias Clasen
c2b7ac0615 Fix a typo 2015-01-14 18:29:57 -05:00
Matthias Clasen
689ba7b5a3 Document the delete-repo command 2015-01-14 18:27:30 -05:00
Matthias Clasen
ebc9772f04 Complete the documentation for the run command
This was missing some of the options.
2015-01-14 18:26:50 -05:00
Matthias Clasen
e237b3525e Improve --branch help text for the run comment
This was clearly a copy-paste error.
2015-01-14 18:26:11 -05:00
Alexander Larsson
92f23cbde2 Merge pull request #4 from matthiasclasen/delete-repo
Delete repo
2015-01-14 10:28:59 +01:00
Alexander Larsson
2be077b9d2 Merge pull request #5 from matthiasclasen/no-help-errors
No help errors
2015-01-14 10:27:36 +01:00
Alexander Larsson
d3f0182452 Merge pull request #6 from matthiasclasen/arg-help
Arg help
2015-01-14 10:27:11 +01:00
Alexander Larsson
7bb9dbc9af Merge pull request #7 from matthiasclasen/docs
Docs
2015-01-14 10:26:25 +01:00
Matthias Clasen
2232a6d066 Add man pages 2015-01-14 01:38:49 -05:00
Matthias Clasen
1a8e40657a Add an argument name to --arch and similar options
This makes the help text more accurate, and helpful.
2015-01-14 00:47:59 -05:00
Matthias Clasen
93de27256d Avoid error for build --help
Those errors are so scary and red, don't show them to somebody
asking for help.
2015-01-13 21:40:33 -05:00
Matthias Clasen
20a0917306 Add a delete-repo command
A natural counterpart to add-repo.
2015-01-13 21:06:07 -05:00
Matthias Clasen
64fc43101d run: don't print error with for --help
This follows what all the other builtins do: first parse the
commandline, then error out if we got too few arguments.
2015-01-13 19:54:19 -05:00
Alexander Larsson
f1c3b1e988 Merge pull request #2 from vrutkovs/jhbuild-hook
Use sudo and DESTDIR in install-exec-hook
2015-01-13 21:49:37 +01:00
Vadim Rutkovsky
4720d889f8 Use sudo only if --enable-sudo is passed 2015-01-13 14:56:14 +01:00
Vadim Rutkovsky
ad1914a912 Use sudo and DESTDIR in install-exec-hook
This will allow installing the app via jhbuild
2015-01-13 13:40:21 +01:00
Alexander Larsson
ab27b589f0 run: Fix possible free of static string 2015-01-13 13:06:37 +01:00
Alexander Larsson
eedc570a8a Use new ostree_repo_pull_default_console_progress_changed, 2015-01-12 16:49:06 +01:00
Alexander Larsson
0d78d22adb Use gs_dirfd_iterator for xdg_app_remove_dangling_symlinks 2015-01-12 16:44:47 +01:00
Alexander Larsson
b8c29f18ae Use the new gs_dirfd_iterator api in symlink_tree 2015-01-12 16:30:59 +01:00
Alexander Larsson
206bf95fa3 Use the new gs_set_error_from_errno 2015-01-12 15:40:26 +01:00
Alexander Larsson
038342cec5 Use the new gs_unref_keyfile define 2015-01-12 15:31:48 +01:00
Alexander Larsson
3b1893aaaf Require latest ostree/libgsystem
This allows us to clean up some code and get the new static delta
support.
2015-01-12 15:31:12 +01:00
Alexander Larsson
cf9713e9c4 Clean up dangling exported symlinks on deploy. 2015-01-12 08:50:09 +01:00
Alexander Larsson
15642f471d Add xdg_app_remove_dangling_symlinks helper 2015-01-12 08:50:09 +01:00
Alexander Larsson
0c28aab49a Explode exports on deploy 2015-01-12 08:50:09 +01:00