Package osh :: Package command
[frames] | no frames]

Source Code for Package osh.command

 1  # osh 
 2  # Copyright (C) Jack Orenstein <jao@geophile.com> 
 3  # 
 4  # This program is free software; you can redistribute it and/or modify 
 5  # it under the terms of the GNU General Public License as published by 
 6  # the Free Software Foundation; either version 2 of the License, or 
 7  # (at your option) any later version. 
 8  # 
 9  # This program is distributed in the hope that it will be useful, 
10  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
12  # GNU General Public License for more details. 
13  # 
14  # You should have received a copy of the GNU General Public License 
15  # along with this program; if not, write to the Free Software 
16  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
17   
18  """These pages document osh commands for both the 
19  command-line and application programming interfaces. The top of each page describes 
20  command-line usage and gives a detailed discussion of command 
21  behavior. API (application programming interface) usage is discussed 
22  in the B{Functions} section of the page. 
23  """ 
24   
25  cli = [ 
26      'agg', 
27      'cat', 
28      'copyfrom', 
29      'copyto', 
30      'expand', 
31      'f', 
32      'fork', 
33      'gen', 
34      'head', 
35      'help', 
36      'imp', 
37      'install', 
38      'installosh', 
39      'ls', 
40      'out', 
41      'ps', 
42      'py', 
43      'red', 
44      'reverse', 
45      'select', 
46      'sh', 
47      'sort', 
48      'sql', 
49      'squish', 
50      'tail', 
51      'timer', 
52      'unique', 
53      'version', 
54      'window' 
55      ] 
56   
57  api_only = [ 
58      'fork', 
59      'merge', 
60      'remote', 
61      'stdin' 
62      ] 
63   
64  __all__ = cli + api_only 
65