22
23
24
25
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
|
# File 'lib/abt/docs.rb', line 22
def extended_examples {
"Tracking meetings (without switching current task setting):" => {
"abt pick asana -d | abt track harvest" => "Track on asana meeting task",
'abt pick harvest -d | abt track harvest -c "Name of meeting"' => "Track on separate harvest-task"
},
"Many commands output ARIs that can be piped into other commands:" => {
"abt tasks asana | grep -i <name of task>" => nil,
"abt tasks asana | grep -i <name of task> | abt start" => nil
},
"Sharing ARIs:" => {
"abt share" => "Print current asana and harvest ARIs on a single line",
"abt share | pbcopy" => "Copy ARIs to clipboard (mac only)",
"abt track <ARIs from coworker>" => "Start tracking on the task your coworker shared with you",
"abt current <ARIs from coworker> | abt track" => "Set task as current, then start tracking"
},
"One-off tracking on any project": {
"abt pick asana -dc -- harvest -dc | abt track" =>
"Find a track any task on any project, without reusing/affecting previous settings",
"abt pick asana harvest | abt track" => "Can be used instead of the above when outside a git repo"
},
"Flags:" => {
'abt start harvest -c "comment"' => "Add command flags after ARIs",
'abt start harvest -c "comment" -- asana' =>
"Use -- to end a list of flags, so that it can be followed by another ARI",
'abt pick harvest | abt start -c "comment"' =>
"Flags placed directly after a command applies to the piped in ARI"
}
}
end
|