Add support for Tails

This commit is contained in:
Jeffrey Serio 2023-12-04 07:41:32 -06:00
parent 5580a859a2
commit bdf30cf86a

View File

@ -14,6 +14,7 @@ import (
"git.sr.ht/~hyperreal/go-torrent-helper/parrot" "git.sr.ht/~hyperreal/go-torrent-helper/parrot"
"git.sr.ht/~hyperreal/go-torrent-helper/qubes" "git.sr.ht/~hyperreal/go-torrent-helper/qubes"
"git.sr.ht/~hyperreal/go-torrent-helper/rocky" "git.sr.ht/~hyperreal/go-torrent-helper/rocky"
"git.sr.ht/~hyperreal/go-torrent-helper/tails"
"github.com/hekmon/transmissionrpc" "github.com/hekmon/transmissionrpc"
) )
@ -132,6 +133,7 @@ func (l *ListCmd) Run(d Distro) error {
"parrot", "parrot",
"qubes", "qubes",
"rocky", "rocky",
"tails",
} }
fmt.Println("Supported distributions:") fmt.Println("Supported distributions:")
@ -219,6 +221,10 @@ func Root(args []string) error {
r := &rocky.Rocky{NameSubstr: "Rocky", Relver: relver} r := &rocky.Rocky{NameSubstr: "Rocky", Relver: relver}
return cmd.Run(r) return cmd.Run(r)
case "tails":
t := &tails.Tails{NameSubstr: "Tails", Relver: relver}
return cmd.Run(t)
default: default:
return fmt.Errorf("Unknown distro: %s", distro) return fmt.Errorf("Unknown distro: %s", distro)
} }