Skip to content

Commit

Permalink
regenerated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Apr 1, 2011
1 parent 64feb64 commit a57d235
Show file tree
Hide file tree
Showing 2 changed files with 202 additions and 32 deletions.
117 changes: 101 additions & 16 deletions sphinx/commands/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,34 @@
Command reference
=================

moa **!**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Moa-fy the last (bash) command issued


Usage::
moa !



**Description:**

Set the 'process' parameter to the last issued command. If no moa
job exists, create a 'simple'job.




*Usage of this command will be logged*



moa **adhoc**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quickly create an adhoc analysis
Create an adhoc analysis


Usage::
Expand All @@ -21,27 +45,87 @@ Creates an adhoc job.



*Usage of this command will be logged*



moa **blog**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

record a short note


Usage::
moa blog



**Description:**

Allows a user to enter a short note that is appended to
moa.description (including a timestamp). Use it as follows::

$ moa blog
Here you can enter a short, conscise, multi-
line message describing what you have been
doing
[ctrl-d]

Note: the ctrl-d needs to be given on an empty line. The text is
appended to moa.desciption. In the web interface this is converted
to Markdown_.

.. _Markdown: http://daringfireball.net/projects/markdown/ markdown.




*Usage of this command will be logged*



moa **cp**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy a moa job (only the configuration, not the data), use moa cp DIR_FROM DIR_TO
Copy a moa job




**Description:**

Copy a moa job -
0 create a new directory
1 copy the configuration
Copy a moa job, or a tree with jobs.

moa cp copies only those files defining a job: the template files
and the job configuration. Additionaly, all files in the moa
directory that start with `moa.` (for example `moa.description`
are copied as well. Data and log files are not copied!

The command has two modes of operation. The first is::

moa cp 10.from 20.to

copies the moa job in 10.from to a newly created 20.to
directory. If the `20.to` directory already exists, a new
directory is created in `20.to/10.from`. As an shortcut one can
use::

moa cp 10.from 20

in which case the job will be copied to the `20.from` directory.

If the source (`10.from`) directory is not a Moa job, the command
exits with an error.

The second mode of operation is recursive copying::

moa cp -r 10.from 20.to

in which case all subdirectories under 10.from are traversed and
copied - if a directory contains a Moa job.

::TODO..
Warn for changing file & dir links

::TODO.. Warn for changing file & dir links



Expand Down Expand Up @@ -216,7 +300,7 @@ optional LINES parameter.
moa **map**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quickly create a "map" adhoc analysis
Create a "map" adhoc analysis


Usage::
Expand All @@ -241,7 +325,7 @@ session::

$ moa map -t 'something intelligent'
process:
> echo {{ input }} {{ output }}
> echo 'processing {{ input }} {{ output }}'
input:
> ../10.input/*.txt
output:
Expand All @@ -250,9 +334,10 @@ session::
Assuming you have a number of text files in the `../10/input/`
directory, you will see, upon running::

../10.input/test.01.txt ./test.01.out
../10.input/test.02.txt ./test.02.out
../10.input/test.03.txt ./test.03.out
processing ../10.input/test.01.txt ./test.01.out
processing ../10.input/test.02.txt ./test.02.out
processing ../10.input/test.03.txt ./test.03.out
...



Expand All @@ -265,7 +350,7 @@ directory, you will see, upon running::
moa **new**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Create a new Moa job in the this directory
Create a new Moa job



Expand Down Expand Up @@ -451,7 +536,7 @@ optional.
moa **simple**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quickly create a "simple" adhoc analysis
Create a "simple" adhoc analysis


Usage::
Expand Down Expand Up @@ -609,7 +694,7 @@ Test the currennt configuration
moa **tree**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Print a directory tree with extra information
display a directory tree



Expand Down
117 changes: 101 additions & 16 deletions sphinx/commands/private.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,34 @@ Command reference (+private)
Includes private commands - private commands are for internal use
only.

moa **!**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Moa-fy the last (bash) command issued


Usage::
moa !



**Description:**

Set the 'process' parameter to the last issued command. If no moa
job exists, create a 'simple'job.




*Usage of this command will be logged*



moa **adhoc**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quickly create an adhoc analysis
Create an adhoc analysis


Usage::
Expand All @@ -24,27 +48,87 @@ Creates an adhoc job.



*Usage of this command will be logged*



moa **blog**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

record a short note


Usage::
moa blog



**Description:**

Allows a user to enter a short note that is appended to
moa.description (including a timestamp). Use it as follows::

$ moa blog
Here you can enter a short, conscise, multi-
line message describing what you have been
doing
[ctrl-d]

Note: the ctrl-d needs to be given on an empty line. The text is
appended to moa.desciption. In the web interface this is converted
to Markdown_.

.. _Markdown: http://daringfireball.net/projects/markdown/ markdown.




*Usage of this command will be logged*



moa **cp**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy a moa job (only the configuration, not the data), use moa cp DIR_FROM DIR_TO
Copy a moa job




**Description:**

Copy a moa job -
0 create a new directory
1 copy the configuration
Copy a moa job, or a tree with jobs.

moa cp copies only those files defining a job: the template files
and the job configuration. Additionaly, all files in the moa
directory that start with `moa.` (for example `moa.description`
are copied as well. Data and log files are not copied!

The command has two modes of operation. The first is::

moa cp 10.from 20.to

copies the moa job in 10.from to a newly created 20.to
directory. If the `20.to` directory already exists, a new
directory is created in `20.to/10.from`. As an shortcut one can
use::

moa cp 10.from 20

in which case the job will be copied to the `20.from` directory.

If the source (`10.from`) directory is not a Moa job, the command
exits with an error.

The second mode of operation is recursive copying::

moa cp -r 10.from 20.to

in which case all subdirectories under 10.from are traversed and
copied - if a directory contains a Moa job.

::TODO..
Warn for changing file & dir links

::TODO.. Warn for changing file & dir links



Expand Down Expand Up @@ -219,7 +303,7 @@ optional LINES parameter.
moa **map**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quickly create a "map" adhoc analysis
Create a "map" adhoc analysis


Usage::
Expand All @@ -244,7 +328,7 @@ session::

$ moa map -t 'something intelligent'
process:
> echo {{ input }} {{ output }}
> echo 'processing {{ input }} {{ output }}'
input:
> ../10.input/*.txt
output:
Expand All @@ -253,9 +337,10 @@ session::
Assuming you have a number of text files in the `../10/input/`
directory, you will see, upon running::

../10.input/test.01.txt ./test.01.out
../10.input/test.02.txt ./test.02.out
../10.input/test.03.txt ./test.03.out
processing ../10.input/test.01.txt ./test.01.out
processing ../10.input/test.02.txt ./test.02.out
processing ../10.input/test.03.txt ./test.03.out
...



Expand All @@ -268,7 +353,7 @@ directory, you will see, upon running::
moa **new**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Create a new Moa job in the this directory
Create a new Moa job



Expand Down Expand Up @@ -454,7 +539,7 @@ optional.
moa **simple**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quickly create a "simple" adhoc analysis
Create a "simple" adhoc analysis


Usage::
Expand Down Expand Up @@ -612,7 +697,7 @@ Test the currennt configuration
moa **tree**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Print a directory tree with extra information
display a directory tree



Expand Down

0 comments on commit a57d235

Please sign in to comment.