start on review tool

trunk
vilmibm 2023-02-14 04:48:12 +00:00
parent efbde68f9d
commit 5682d3dafd
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,25 @@
THIS COMMAND is for reviewing applications made to tilde.town. it's for admins to run.
signups land in `/town/signups` as JSON files. This tool iterates over them and
lets an admin take one of a few actions:
- skip
- approve
- reject
- notate (leave a note for other admins)
- jump to random signup
some other requirements in no particular order:
- JSON files should be locked when being looked at
- notation modifies the JSON in place
- approved signups go to `/town/signups/approved`
- rejected signups go to `/town/signups/rejected`
I'm not 100% sure yet what approval is going to look like; I want to switch to
a system where people are emailed about their acceptance and given a code they
can exchange for an ssh form that lets them pick a username and add a pubkey.
so for now i'm just going to move the files into `/town/signups/approved` while
i think about that.

19
cmd/review/main.go 100644
View File

@ -0,0 +1,19 @@
package main
import (
"fmt"
"os"
)
func _main() error {
// TODO tview
return nil
}
func main() {
err := _main()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}