diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 743f490..688425d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,7 +42,7 @@ jobs: run: go vet ./... - name: Build - run: mkdir bin && go build -v -ldflags "-X github.com/ArmyCyberInstitute/cmgr/cmgr.version=`git describe --tags`" -o bin ./... + run: mkdir bin && go build -v -ldflags "-X github.com/picoCTF/cmgr/cmgr.version=`git describe --tags`" -o bin ./... - name: Unit Tests run: go test -v ./... diff --git a/README.md b/README.md index a808017..b058b85 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ identify permissions and other errors and is highly recommended for the first time you use `cmgr` on a system. ```sh -wget https://github.com/ArmyCyberInstitute/cmgr/releases/latest/download/examples.tar.gz -wget https://github.com/ArmyCyberInstitute/cmgr/releases/latest/download/cmgr_`uname -s | tr '[:upper:]' '[:lower:]'`_amd64.tar.gz +wget https://github.com/picoCTF/cmgr/releases/latest/download/examples.tar.gz +wget https://github.com/picoCTF/cmgr/releases/latest/download/cmgr_`uname -s | tr '[:upper:]' '[:lower:]'`_amd64.tar.gz tar xzvf examples.tar.gz cd examples tar xzvf ../cmgr_`uname -s | tr '[:upper:]' '[:lower:]'`_amd64.tar.gz @@ -122,8 +122,7 @@ can be found [here](cmd/cmgrd/swagger.yaml). If you're interested in contributing, modifying, or extending **cmgr**, the core functionality of the project is implemented in a single Go library under -the `cmgr` directory. You can view the API documentation on -[go.dev](https://pkg.go.dev/github.com/ArmyCyberInstitute/cmgr/cmgr). +the `cmgr` directory. Additionally, the _SQLite3_ database is intended to function as a read-only API and its schema can be found [here](cmgr/database.go). @@ -132,7 +131,7 @@ _cgo_ enabled for at least the initial build where the _sqlite3_ driver is built and installed. To get started, you can run: ```sh -git clone https://github.com/ArmyCyberInstitute/cmgr +git clone https://github.com/picoCTF/cmgr cd cmgr go get -v -t -d ./... mkdir bin diff --git a/cmd/cmgr/builds.go b/cmd/cmgr/builds.go index 2777744..12fdf46 100644 --- a/cmd/cmgr/builds.go +++ b/cmd/cmgr/builds.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) func doBuild(mgr *cmgr.Manager, args []string) int { diff --git a/cmd/cmgr/challenges.go b/cmd/cmgr/challenges.go index 94d5a13..d0512a2 100644 --- a/cmd/cmgr/challenges.go +++ b/cmd/cmgr/challenges.go @@ -9,7 +9,7 @@ import ( "regexp" "time" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) func listChallenges(mgr *cmgr.Manager, args []string) int { diff --git a/cmd/cmgr/instances.go b/cmd/cmgr/instances.go index bcb5f6a..e8aef87 100644 --- a/cmd/cmgr/instances.go +++ b/cmd/cmgr/instances.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) func startInstance(mgr *cmgr.Manager, args []string) int { diff --git a/cmd/cmgr/main.go b/cmd/cmgr/main.go index 605214d..09fa945 100644 --- a/cmd/cmgr/main.go +++ b/cmd/cmgr/main.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) const ( diff --git a/cmd/cmgr/playtest.go b/cmd/cmgr/playtest.go index 3a90b13..60a7886 100644 --- a/cmd/cmgr/playtest.go +++ b/cmd/cmgr/playtest.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) func playtestChallenge(mgr *cmgr.Manager, args []string) int { diff --git a/cmd/cmgr/schemas.go b/cmd/cmgr/schemas.go index 3fb1206..850bf08 100644 --- a/cmd/cmgr/schemas.go +++ b/cmd/cmgr/schemas.go @@ -9,7 +9,7 @@ import ( "gopkg.in/yaml.v2" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) func listSchemas(mgr *cmgr.Manager, args []string) int { diff --git a/cmd/cmgr/system.go b/cmd/cmgr/system.go index 858e055..8060145 100644 --- a/cmd/cmgr/system.go +++ b/cmd/cmgr/system.go @@ -5,7 +5,7 @@ import ( "flag" "fmt" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) func resetSystemState(mgr *cmgr.Manager, args []string) int { diff --git a/cmd/cmgrd/main.go b/cmd/cmgrd/main.go index 2f86c08..a6caac3 100644 --- a/cmd/cmgrd/main.go +++ b/cmd/cmgrd/main.go @@ -15,7 +15,7 @@ import ( "strconv" "strings" - "github.com/ArmyCyberInstitute/cmgr/cmgr" + "github.com/picoCTF/cmgr/cmgr" ) type state struct { diff --git a/cmgr/api.go b/cmgr/api.go index eaa9d9d..53d79a0 100644 --- a/cmgr/api.go +++ b/cmgr/api.go @@ -6,7 +6,7 @@ import ( "math/rand" "time" - "github.com/ArmyCyberInstitute/cmgr/cmgr/dockerfiles" + "github.com/picoCTF/cmgr/cmgr/dockerfiles" ) const manualSchemaPrefix = "manual-" diff --git a/go.mod b/go.mod index 89db13d..9bf8c0d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ArmyCyberInstitute/cmgr +module github.com/picoCTF/cmgr go 1.16