Adds list command
This commit is contained in:
@@ -52,6 +52,11 @@ def logFinishedJob [slug] {
|
||||
curl -s $"($statusHost)/ping/($pingKey)/($slug)" | save -f /dev/null
|
||||
}
|
||||
|
||||
def "main list" [] {
|
||||
print "Known jobs:"
|
||||
print $"($jobs | get statusSlug | to text)"
|
||||
}
|
||||
|
||||
def main [statusSlug] {
|
||||
let matches = $jobs | where statusSlug == $statusSlug
|
||||
if ($matches | length) == 1 {
|
||||
|
||||
Reference in New Issue
Block a user