# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 10
# self = https://watcher.sour.is/conv/vzah2xq
@prologic what do you think about this thing?
here's a basic sketch in Go

package main                                                                                                                                                
                                                                                                                                                            
import (                                                                                                                                                    
        "flag"                                                                                                                                              
        "fmt"                                                                                                                                               
        "os"                                                                                                                                                
)                                                                                                                                                           
                                                                                                                                                            
var (                                                                                                                                                       
        kill = flag.String("k", "", "stop a unit")                                                                                                          
        restart = flag.String("r", "", "restart a unit")                                                                                                    
        start = flag.String("s", "", "start a unit")                                                                                                        
)                                                                                                                                                           
                                                                                                                                                            
main() {                                                                                                                                                    
        flag.Parse()                                                                                                                                        
        if flag.NArg() == 0 {                                                                                                                               
                fmt.Fprintf(os.Stderr, "Usage: svc [options] [service] \\n")                                                                                 
                flag.PrintDefaults()                                                                                                                        
                os.Exit(1)                                                                                                                                  
        }                                                                                                                                                   
}
@novaburst What's this sorry? 🤔 Gimme a one or two sentence description 🤗
@novaburst What's this sorry? 🤔 Gimme a one or two sentence description 🤗
@prologic attempt to write a one-off (without daemon) service manager, by the way
@novaburst Ahh I see!
@novaburst Ahh I see!
Looks good so far, keep going 👌
Looks good so far, keep going 👌
@novaburst To test whether a file is executable, you can simply: test -x $file