mirror of
https://github.com/paleotronic/diskm8.git
synced 2024-08-31 22:28:59 +00:00
chore: cleanup unused code
This commit is contained in:
parent
f649cebd0e
commit
a874d24af2
5
go.mod
5
go.mod
@ -4,7 +4,4 @@ go 1.22.3
|
||||
|
||||
require github.com/chzyer/readline v1.5.1
|
||||
|
||||
require (
|
||||
github.com/gorilla/mux v1.8.1 // indirect
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect
|
||||
)
|
||||
require golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect
|
||||
|
2
go.sum
2
go.sum
@ -4,7 +4,5 @@ github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI
|
||||
github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk=
|
||||
github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04=
|
||||
github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8=
|
||||
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
|
||||
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 h1:y/woIyUBFbpQGKS0u1aHF/40WUDnek3fPOyD08H5Vng=
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
|
8
main.go
8
main.go
@ -95,10 +95,6 @@ var fileDelete = flag.String("file-delete", "", "File to delete (-with-disk)")
|
||||
var fileMkdir = flag.String("dir-create", "", "Directory to create (-with-disk)")
|
||||
var fileCatalog = flag.Bool("catalog", false, "List disk contents (-with-disk)")
|
||||
var quarantine = flag.Bool("quarantine", false, "Run -as-dupes and -whole-disk in quarantine mode")
|
||||
var serve = flag.String("serve", "", "host:port to run diskm8 server on")
|
||||
var tlsCert = flag.String("tls-cert", "", "TLS certificate to use for -serve")
|
||||
var tlsKey = flag.String("tls-key", "", "TLS key to use for -serve")
|
||||
var acceptOrigin = flag.String("accept-origin", "*", "Control origin -serve allows accepting from")
|
||||
|
||||
func main() {
|
||||
|
||||
@ -110,10 +106,6 @@ func main() {
|
||||
banner()
|
||||
}
|
||||
|
||||
if *serve != "" {
|
||||
StartService(*serve, *tlsCert, *tlsKey)
|
||||
}
|
||||
|
||||
var filterpath []string
|
||||
|
||||
if *filterPath || *shell {
|
||||
|
Loading…
Reference in New Issue
Block a user