26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/cli/runner.rb', line 26
def commands
"\n" \
<< "== Project Commands\n\n" \
<< "list <uuid> # List a project's models\n" \
<< "codes # Outline applicable entity codes for ZedDB\n\n" \
<< "== Model Commands\n\n" \
<< "models:show <uuid> # Show model details\n" \
<< "models:create <project> <name> key=value [...] # Create a new model\n" \
<< "models:update <uuid> key=value [...] # Update an existing model\n" \
<< "models:delete <uuid> # Delete an existing model\n\n" \
<< "== Model Item Commands\n\n" \
<< "items:show <uuid> # Show details of a model's data items\n" \
<< "items:create <model> <name> key=value [...] # Create a new data item within a model\n" \
<< "items:update <uuid> key=value [...] # Update an existing data item\n" \
<< "items:delete <uuid> # Delete an existing data item\n\n" \
<< "== Model Association Commands\n\n" \
<< "assocs:create <code> key=value [...] # Create a new association between two models\n" \
<< "assocs:delete <uuid> # Delete an existing association between two models\n\n" \
<< "== Data Item Validation Commands\n\n" \
<< "vals:create <item> <code> key=value [...] # Create a new validation for an existing data item\n" \
<< "vals:update <item> <uuid> key=value [...] # Update an existing validation\n" \
<< "vals:delete <item> <uuid> # Delete an existing validation\n\n" \
<< "== Data Item Transformer Commands\n\n" \
<< "trans:create <item> <code> # Create a new transformer for an existing data item\n" \
<< "trans:delete <item> <uuid> # Delete an existing transformer\n\n" \
<< "==\n\n"
end
|