diff options
Diffstat (limited to 'src/ostree/main.c')
-rw-r--r-- | src/ostree/main.c | 102 |
1 files changed, 29 insertions, 73 deletions
diff --git a/src/ostree/main.c b/src/ostree/main.c index 0b886c1f..edb8a7a0 100644 --- a/src/ostree/main.c +++ b/src/ostree/main.c @@ -35,99 +35,55 @@ static OstreeCommand commands[] = { * admin command may have their own * admin flag */ - { "admin", OSTREE_BUILTIN_FLAG_NO_REPO, - ostree_builtin_admin, + { "admin", OSTREE_BUILTIN_FLAG_NO_REPO, ostree_builtin_admin, "Commands for managing a host system booted with ostree" }, - { "cat", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_cat, - "Concatenate contents of files"}, - { "checkout", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_checkout, + { "cat", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_cat, "Concatenate contents of files" }, + { "checkout", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_checkout, "Check out a commit into a filesystem tree" }, - { "checksum", OSTREE_BUILTIN_FLAG_NO_REPO, - ostree_builtin_checksum, + { "checksum", OSTREE_BUILTIN_FLAG_NO_REPO, ostree_builtin_checksum, "Checksum a file or directory" }, - { "commit", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_commit, - "Commit a new revision" }, - { "config", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_config, + { "commit", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_commit, "Commit a new revision" }, + { "config", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_config, "Change repo configuration settings" }, - { "diff", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_diff, - "Compare directory TARGETDIR against revision REV"}, - { "export", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_export, + { "diff", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_diff, + "Compare directory TARGETDIR against revision REV" }, + { "export", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_export, "Stream COMMIT to stdout in tar format" }, - { "find-remotes", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_find_remotes, + { "find-remotes", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_find_remotes, "Find remotes to serve the given refs" }, - { "create-usb", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_create_usb, + { "create-usb", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_create_usb, "Copy the refs to a USB stick" }, - { "fsck", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_fsck, - "Check the repository for consistency" }, + { "fsck", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_fsck, "Check the repository for consistency" }, #ifndef OSTREE_DISABLE_GPGME - { "gpg-sign", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_gpg_sign, - "Sign a commit" }, + { "gpg-sign", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_gpg_sign, "Sign a commit" }, #endif /* OSTREE_DISABLE_GPGME */ - { "init", OSTREE_BUILTIN_FLAG_NO_CHECK, - ostree_builtin_init, + { "init", OSTREE_BUILTIN_FLAG_NO_CHECK, ostree_builtin_init, "Initialize a new empty repository" }, - { "log", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_log, - "Show log starting at commit or ref" }, - { "ls", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_ls, - "List file paths" }, - { "prune", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_prune, - "Search for unreachable objects" }, - { "pull-local", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_pull_local, - "Copy data from SRC_REPO" }, + { "log", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_log, "Show log starting at commit or ref" }, + { "ls", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_ls, "List file paths" }, + { "prune", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_prune, "Search for unreachable objects" }, + { "pull-local", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_pull_local, "Copy data from SRC_REPO" }, #ifdef HAVE_LIBCURL_OR_LIBSOUP - { "pull", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_pull, - "Download data from remote repository" }, + { "pull", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_pull, "Download data from remote repository" }, #endif - { "refs", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_refs, - "List refs" }, - { "remote", OSTREE_BUILTIN_FLAG_NO_REPO, - ostree_builtin_remote, + { "refs", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_refs, "List refs" }, + { "remote", OSTREE_BUILTIN_FLAG_NO_REPO, ostree_builtin_remote, "Remote commands that may involve internet access" }, - { "reset", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_reset, - "Reset a REF to a previous COMMIT" }, - { "rev-parse", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_rev_parse, - "Output the target of a rev" }, - { "sign", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_sign, - "Sign a commit" }, - { "show", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_show, - "Output a metadata object" }, - { "static-delta", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_static_delta, + { "reset", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_reset, "Reset a REF to a previous COMMIT" }, + { "rev-parse", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_rev_parse, "Output the target of a rev" }, + { "sign", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_sign, "Sign a commit" }, + { "show", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_show, "Output a metadata object" }, + { "static-delta", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_static_delta, "Static delta related commands" }, - { "summary", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_summary, - "Manage summary metadata" }, + { "summary", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_summary, "Manage summary metadata" }, #if defined(HAVE_LIBSOUP_OR_LIBSOUP3) && defined(BUILDOPT_ENABLE_TRIVIAL_HTTPD_CMDLINE) - { "trivial-httpd", OSTREE_BUILTIN_FLAG_NONE, - ostree_builtin_trivial_httpd, - NULL }, + { "trivial-httpd", OSTREE_BUILTIN_FLAG_NONE, ostree_builtin_trivial_httpd, NULL }, #endif { NULL } }; int -main (int argc, - char **argv) +main (int argc, char **argv) { g_assert (argc > 0); |