]> kaliko git repositories - mpd-sima.git/blobdiff - data/man/mpd_sima.1.xml
doc: Add publish target
[mpd-sima.git] / data / man / mpd_sima.1.xml
index 48cf028cd2aa45ae3dc712120fc8a0bf5aa1bb01..9873396e17b46dc2700fdf985ed24b18ff34433a 100644 (file)
@@ -43,7 +43,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
 <!DOCTYPE refentry [
 
   <!ENTITY dhsection   "1">
-  <!ENTITY dhpackage "mpd-sima">
+  <!ENTITY dhpackage "mpd_sima">
   <!ENTITY dhutils "mpd-sima">
 
 ]>
@@ -56,15 +56,15 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
       <manvolnum>&dhsection;</manvolnum>
   </refmeta>
   <refnamediv>
-    <refname>&dhpackage;</refname>
-    <refpurpose>&dhpackage; will try to maintain some titles ahead in the queue following different policies.</refpurpose>
+    <refname>&dhutils;</refname>
+    <refpurpose>&dhutils; will try to maintain some titles ahead in the queue following different policies.</refpurpose>
   </refnamediv>
   <refsynopsisdiv>
     <cmdsynopsis>
-      <command>&dhpackage;</command>
+      <command>&dhutils;</command>
       <arg choice="opt"><option>--daemon</option></arg>
       <arg choice="opt"><option>--config=</option><replaceable class="option">conf_file</replaceable></arg>
-      <arg choice="opt"><option>--var_dir=</option><replaceable class="option">var_directory</replaceable></arg>
+      <arg choice="opt"><option>--var-dir=</option><replaceable class="option">var_directory</replaceable></arg>
       <arg choice="opt"><option>--pid=</option><replaceable class="option">pid_file</replaceable></arg>
       <arg choice="opt"><option>--log=</option><replaceable class="option">log_file</replaceable></arg>
       <arg choice="opt"><option>--log-level=</option><replaceable class="option">log_level</replaceable></arg>
@@ -72,34 +72,73 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
       <arg choice="opt"><option>--mpd_port=</option><replaceable class="option">mpd_port</replaceable></arg>
     </cmdsynopsis>
     <cmdsynopsis>
-      <command>&dhpackage;</command>
-      <arg choice="opt"><option>--var_dir=</option><replaceable class="option">var_directory</replaceable></arg>
-      <arg choice="opt"><option>--create-db</option></arg>
-    </cmdsynopsis>
-    <cmdsynopsis>
-      <command>&dhpackage;</command>
+      <command>&dhutils;</command>
       <!-- Normally the help and version options make the programs stop
            right after outputting the requested information. -->
-      <group choice="opt">
-        <arg choice="plain">
+      <group choice="plain">
+        <arg choice="req">
           <group choice="req">
             <arg choice="plain"><option>-h</option></arg>
             <arg choice="plain"><option>--help</option></arg>
           </group>
+          <arg choice="plain"><option>--version</option></arg>
         </arg>
-        <arg choice="plain"><option>--version</option></arg>
       </group>
     </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">config-test</arg>
+      <arg choice="opt"><option>--config=</option><replaceable class="option">conf_file</replaceable></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">create-db</arg>
+      <arg choice="opt"><option>--var-dir=</option><replaceable class="option">var_directory</replaceable></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">generate-config</arg>
+      <arg choice="opt"><option>…</option></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">purge-history</arg>
+      <arg choice="opt"><option>--var-dir=</option><replaceable class="option">var_directory</replaceable></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">bl-view</arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">bl-add-artist</arg>
+      <arg choice="opt"><option>artist</option></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">bl-add-album</arg>
+      <arg choice="opt"><option>album</option></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">bl-add-track</arg>
+      <arg choice="opt"><option>track</option></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhutils;</command>
+      <arg choice="plain">bl-delete</arg>
+      <arg choice="plain"><option>id</option></arg>
+    </cmdsynopsis>
   </refsynopsisdiv>
   <refsect1 id="description">
     <title>DESCRIPTION</title>
     <para>This manual page documents briefly the
-      <command>&dhpackage;</command> commands.</para>
+      <command>&dhutils;</command> commands.</para>
     <para>At start up default configuration is first overridden by user
         configuration in mpd_sima.cfg (see <xref linkend="files"/>) and finally
         command lines options are honored. For instance you can override
-        default MPD_HOST set in defaults (localhost) or in your configuration
-        file with <command>-S my_mpd_server</command> option. For default
+        default MPD host (localhost) in your configuration
+        file or with <command>-S my_mpd_server</command> option. For default
         configuration see <xref linkend="configuration"/>. See also environment
         variables special case for MPD host and port in <xref linkend="environment"/>.
     </para>
@@ -108,16 +147,16 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
         <title>EXAMPLE</title>
         <refsect2 id="daemon">
             <title>Launch as a system service (dæmon).</title>
-            <para>Here follows an example on how to launch &dhpackage; as a service on your system, not attach to regular user configuration/database.</para>
-            <para><command>&dhpackage; --daemon --conf=/etc/mpd_sima.cfg --var_dir=/var/cache/mpd-sima/ --pid=/run/mpd-sima.pid --log=/var/log/mpd-sima.log</command></para>
+            <para>Here follows an example on how to launch &dhutils; as a service on your system, not attach to regular user configuration/database.</para>
+            <para><command>&dhutils; --daemon --conf=/etc/mpd_sima.cfg --var-dir=/var/cache/mpd-sima/ --pid=/run/mpd-sima.pid --log=/var/log/mpd-sima.log</command></para>
         </refsect2>
         <refsect2 id="user_land">
             <title>Launch in user land</title>
-            <para>Launching &dhpackage; from/whithin your user account is easy, you can simply call <command>&dhpackage;</command> from your shell or one of the following command:</para>
+            <para>Launching &dhutils; from/whithin your user account is easy, you can simply call <command>&dhutils;</command> from your shell or one of the following command:</para>
             <para>Background execution (dæmonise), log in the specified file, save pid:</para>
-            <para><command>&dhpackage; --daemon --pid=$HOME/var/run/mpd-sima.pid --log=$HOME/var/log/mpd-sima.log</command></para>
+            <para><command>&dhutils; --daemon --pid=$HOME/var/run/mpd-sima.pid --log=$HOME/var/log/mpd-sima.log</command></para>
             <para>Foreground execution, connect <emphasis>my.mpd.server.org</emphasis>, log to std(out|err):</para>
-            <para><command>&dhpackage; --host=my.mpd.server.org</command></para>
+            <para><command>&dhutils; --host=my.mpd.server.org</command></para>
         </refsect2>
     </refsect1>
   <refsect1 id="options">
@@ -184,16 +223,10 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                    </para>
             </listitem>
         </varlistentry>
-        <varlistentry> <!-- var_dir -->
-            <term><option>--var_dir=<replaceable class="parameter">var_directory</replaceable></option></term>
-            <listitem>
-                <para>Use the specific path <replaceable>var_directory</replaceable> to look for (or create) var files (ie. database) instead of looking at the default user data location.<sbr />Default is to look in <envar>$XDG_DATA_HOME/mpd_sima/</envar>.  Concerning <envar>$XDG_DATA_HOME</envar> see also <xref linkend="files"/></para>
-            </listitem>
-        </varlistentry>
-        <varlistentry> <!-- create-db -->
-            <term><option>--create-db</option></term>
+        <varlistentry> <!-- var-dir -->
+            <term><option>--var-dir=<replaceable class="parameter">var_directory</replaceable></option></term>
             <listitem>
-                <para>Create the database and exit. Uses folder specified with <option>--var_dir</option> or default directory.<sbr />Default is to use <envar>$XDG_DATA_HOME/mpd_sima/</envar>.  Concerning <envar>$XDG_DATA_HOME</envar> see also <xref linkend="files"/></para>
+                <para>Use the specific path <replaceable>var_directory</replaceable> to look for (or create) var files (ie. database) instead of looking at the default user data location.<sbr />Default is to look in <envar>$XDG_DATA_HOME/mpd_sima/</envar>.  Concerning <envar>$XDG_DATA_HOME</envar> see also <xref linkend="files"/>.</para>
             </listitem>
         </varlistentry>
         <varlistentry><!-- host -->
@@ -212,6 +245,72 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                 <para>See also <xref linkend="environment"/></para>
             </listitem>
         </varlistentry>
+        <varlistentry> <!-- config-test -->
+            <term><option>config-test</option></term>
+            <listitem>
+              <para>Test configuration file and exit. Uses the configuration file specified with <option>--config</option> or default location.<sbr />Default is to use <envar>$XDG_CONFIG_HOME/mpd_sima/mpd_sima.cfg</envar> (see <xref linkend="files"/> for more).</para>
+                <para>config-test tests MPD connection and Tags plugin configuration.</para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- create-db -->
+            <term><option>create-db</option></term>
+            <listitem>
+                <para>Create the database and exit. Uses folder specified with <option>--var-dir</option> or default directory.<sbr />Default is to use <envar>$XDG_DATA_HOME/mpd_sima/</envar> (see <xref linkend="files"/> for more).</para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- generate-config -->
+            <term><option>generate-config</option></term>
+            <listitem>
+                <para>Generate a sample configuration file according to the current CLI options and env. var.. The configuration is written on stdout.</para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- purge-history -->
+            <term><option>purge-history</option></term>
+            <listitem>
+                <para>Purge play history in the database and exit. Uses folder specified with <option>--var-dir</option> or default directory.<sbr />Default is to use <envar>$XDG_DATA_HOME/mpd_sima/</envar> (see <xref linkend="files"/> for more).</para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- bl-view -->
+            <term><option>bl-view</option></term>
+            <listitem>
+                <para>View blocklist, useful to get entry IDs to remove with delete command.</para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- bl-add-artist -->
+          <term><option>bl-add-artist <replaceable class="parameter">artist</replaceable></option></term>
+            <listitem>
+              <para>Add artist to the blocklist. If
+              <replaceable class="parameter">artist</replaceable>
+                is not provided, try to get the currently playing artist.
+              </para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- bl-add-album -->
+          <term><option>bl-add-album <replaceable class="parameter">album</replaceable></option></term>
+            <listitem>
+              <para>Add album to the blocklist. If
+              <replaceable class="parameter">album</replaceable>
+                is not provided, try to get the currently playing album.
+              </para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- bl-add-track -->
+          <term><option>bl-add-track <replaceable class="parameter">track</replaceable></option></term>
+            <listitem>
+              <para>Add track to the blocklist. If
+              <replaceable class="parameter">track</replaceable>
+                is not provided, try to get the currently playing track.
+              </para>
+            </listitem>
+        </varlistentry>
+        <varlistentry> <!-- bl-delete -->
+          <term><option>bl-delete <replaceable class="parameter">id</replaceable></option></term>
+            <listitem>
+              <para>Remove blocklist entry referenced by its
+              <replaceable class="parameter">id</replaceable>. Use bloclist view command to get the id.
+              </para>
+            </listitem>
+        </varlistentry>
     </variablelist>
   </refsect1>
   <xi:include href="files.xml" />
@@ -230,6 +329,12 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
                   </para>
               </listitem>
           </varlistentry>
+          <varlistentry>
+              <term><envar>HTTP_PROXY</envar>, <envar>HTTPS_PROXY</envar></term>
+              <listitem>
+                  <para>&dhutils; honors <envar>HTTP_PROXY</envar> environment variables.</para>
+              </listitem>
+          </varlistentry>
       </variablelist>
   </refsect1>
   <refsect1 id="configuration">
@@ -249,13 +354,9 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
           <varlistentry>
               <term>DEFAULTS</term>
               <listitem>
-                  <para>Default is to look for MPD server at localhost:6600 (or MPD_HOST/MPD_PORT env. var. if set).</para>
-                        <para>The default behavior is to add one track, this
-                            track is to be chosen among titles from artists
-                            similar to the last artist in the queue.  MPD_sima
-                            will add one track when the unplayed queue is one
-                            track long.</para>
-                  <para>To change these defaults, use the configuration file <filename>mpd_sima.cfg</filename></para>
+                  <para>Default is to look for MPD server at localhost:6600 (or MPD_HOST/MPD_PORT env. var. if set). The default plugins will use Last.fm to find similar tracks to queue and fallback to random if nothing if found.</para>
+                  <para>The get the defaults as detected by &dhutils; on your system you can run &dhutils; to print the config:</para>
+                  <para><command>&dhpackage; generate-config</command></para>
               </listitem>
           </varlistentry>
       </variablelist>