mirror of
https://codeberg.org/hyperreal/go-torrent-helper
synced 2024-11-01 16:53:09 +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/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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user