mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 20:50:56 +01:00
couple of enhancements, reorg etc
This commit is contained in:
18
upd/testzip.go
Normal file
18
upd/testzip.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/tlinden/up/upd/api"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) > 2 {
|
||||
dir, err := os.Getwd()
|
||||
if err != nil {
|
||||
}
|
||||
if err := api.ZipSource(dir+"/"+os.Args[1], os.Args[2]); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user