Rename export-file to document-export

This fits better with the naming scheme for commands in general, and
will let us add more document portal related commands in the future.
tingping/wmclass
Matthias Clasen 2016-06-10 11:16:22 -04:00
parent a84f725211
commit 98a66ce6d8
6 changed files with 14 additions and 14 deletions

View File

@ -56,9 +56,9 @@ static GOptionEntry options[] = {
};
gboolean
flatpak_builtin_export_file (int argc, char **argv,
GCancellable *cancellable,
GError **error)
flatpak_builtin_document_export (int argc, char **argv,
GCancellable *cancellable,
GError **error)
{
g_autoptr(GOptionContext) context = NULL;
g_autoptr(GVariant) reply = NULL;
@ -186,7 +186,7 @@ flatpak_builtin_export_file (int argc, char **argv,
}
gboolean
flatpak_complete_export_file (FlatpakCompletion *completion)
flatpak_complete_document_export (FlatpakCompletion *completion)
{
g_autoptr(GOptionContext) context = NULL;

View File

@ -77,7 +77,7 @@ BUILTINPROTO (build_export)
BUILTINPROTO (build_bundle)
BUILTINPROTO (build_import)
BUILTINPROTO (build_update_repo)
BUILTINPROTO (export_file)
BUILTINPROTO (document_export)
BUILTINPROTO (override)
#undef BUILTINPROTO

View File

@ -61,7 +61,7 @@ static FlatpakCommand commands[] = {
{ "\n Running applications" },
{ "run", "Run an application", flatpak_builtin_run, flatpak_complete_run },
{ "override", "Override permissions for an application", flatpak_builtin_override, flatpak_complete_override },
{ "export-file", "Grant an application access to a specific file", flatpak_builtin_export_file, flatpak_complete_export_file },
{ "document-export", "Grant an application access to a specific file", flatpak_builtin_document_export, flatpak_complete_document_export },
{ "make-current", "Specify default version to run", flatpak_builtin_make_current_app, flatpak_complete_make_current_app },
{ "enter", "Enter the namespace of a running application", flatpak_builtin_enter, flatpak_complete_enter },

View File

@ -30,7 +30,7 @@ man_MANS = \
flatpak-run.1 \
flatpak-override.1 \
flatpak-enter.1 \
flatpak-export-file.1 \
flatpak-document-export.1 \
flatpak-build-init.1 \
flatpak-build.1 \
flatpak-build-bundle.1 \

View File

@ -2,10 +2,10 @@
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<refentry id="flatpak-export-file">
<refentry id="flatpak-document-export">
<refentryinfo>
<title>flatpak export-file</title>
<title>flatpak document-export</title>
<productname>flatpak</productname>
<authorgroup>
@ -19,18 +19,18 @@
</refentryinfo>
<refmeta>
<refentrytitle>flatpak export-file</refentrytitle>
<refentrytitle>flatpak document-export</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
<refname>flatpak-export-file</refname>
<refname>flatpak-document-export</refname>
<refpurpose>Export a file to a sandboxed application</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>flatpak export-file</command>
<command>flatpak document-export</command>
<arg choice="opt" rep="repeat">OPTION</arg>
<arg choice="plain">FILE</arg>
</cmdsynopsis>
@ -141,7 +141,7 @@
<title>Examples</title>
<para>
<command>$ flatpak export-file --app=org.gnome.GEdit ~/test.txt</command>
<command>$ flatpak document-export --app=org.gnome.GEdit ~/test.txt</command>
</para>
<programlisting>
/run/user/1000/doc/e52f9c6a/test.txt

View File

@ -162,7 +162,7 @@
</para></listitem>
</varlistentry>
<varlistentry>
<term><citerefentry><refentrytitle>flatpak-export-file</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<term><citerefentry><refentrytitle>flatpak-document-export</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem><para>
Grant an application access to a specific file.