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
|
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] {
|
def main [statusSlug] {
|
||||||
let matches = $jobs | where statusSlug == $statusSlug
|
let matches = $jobs | where statusSlug == $statusSlug
|
||||||
if ($matches | length) == 1 {
|
if ($matches | length) == 1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user