mirror of
https://codeberg.org/hyperreal/go-torrent-helper
synced 2024-11-01 08:43:10 +01:00
Add support for Tails
This commit is contained in:
parent
5580a859a2
commit
bdf30cf86a
@ -14,6 +14,7 @@ import (
|
||||
"git.sr.ht/~hyperreal/go-torrent-helper/parrot"
|
||||
"git.sr.ht/~hyperreal/go-torrent-helper/qubes"
|
||||
"git.sr.ht/~hyperreal/go-torrent-helper/rocky"
|
||||
"git.sr.ht/~hyperreal/go-torrent-helper/tails"
|
||||
"github.com/hekmon/transmissionrpc"
|
||||
)
|
||||
|
||||
@ -132,6 +133,7 @@ func (l *ListCmd) Run(d Distro) error {
|
||||
"parrot",
|
||||
"qubes",
|
||||
"rocky",
|
||||
"tails",
|
||||
}
|
||||
|
||||
fmt.Println("Supported distributions:")
|
||||
@ -219,6 +221,10 @@ func Root(args []string) error {
|
||||
r := &rocky.Rocky{NameSubstr: "Rocky", Relver: relver}
|
||||
return cmd.Run(r)
|
||||
|
||||
case "tails":
|
||||
t := &tails.Tails{NameSubstr: "Tails", Relver: relver}
|
||||
return cmd.Run(t)
|
||||
|
||||
default:
|
||||
return fmt.Errorf("Unknown distro: %s", distro)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user