diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 13935dc..e08e239 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -11,9 +11,6 @@ jobs: test: if: ${{ ! github.event.pull_request.draft }} runs-on: docker - env: - GO_TEST_VERBOSE: "1" - GO_TEST_COVER: "1" steps: - name: Checkout Repository uses: https://code.forgejo.org/actions/checkout@v4 @@ -22,5 +19,5 @@ jobs: with: target: test env: - PROJECT_TEST_VERBOSE: "1" - PROJECT_TEST_COVER: "1" + GATOR_TEST_VERBOSE: "1" + GATOR_TEST_COVER: "1" diff --git a/README.md b/README.md new file mode 100644 index 0000000..af53827 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# gator + +Gator is an RSS feed aggregator for the command line. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..65ae29e --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module codeflow.dananglin.me.uk/apollo/gator + +go 1.23.1 diff --git a/magefiles/go.mod b/magefiles/go.mod new file mode 100644 index 0000000..34399a2 --- /dev/null +++ b/magefiles/go.mod @@ -0,0 +1,5 @@ +module codeflow.dananglin.me.uk/apollo/gator/magefiles + +go 1.23.1 + +require github.com/magefile/mage v1.15.0 diff --git a/magefiles/go.sum b/magefiles/go.sum new file mode 100644 index 0000000..4ee1b87 --- /dev/null +++ b/magefiles/go.sum @@ -0,0 +1,2 @@ +github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg= +github.com/magefile/mage v1.15.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A= diff --git a/magefiles/mage.go b/magefiles/mage.go index 1a12267..c875bd6 100644 --- a/magefiles/mage.go +++ b/magefiles/mage.go @@ -14,13 +14,13 @@ import ( ) const ( - app = "binary" + app = "gator" defaultInstallPrefix = "/usr/local" - envInstallPrefix = "PROJECT_INSTALL_PREFIX" - envTestVerbose = "PROJECT_TEST_VERBOSE" - envTestCover = "PROJECT_TEST_COVER" - envBuildRebuildAll = "PROJECT_BUILD_REBUILD_ALL" - envBuildVerbose = "PROJECT_BUILD_VERBOSE" + envInstallPrefix = "GATOR_INSTALL_PREFIX" + envTestVerbose = "GATOR_TEST_VERBOSE" + envTestCover = "GATOR_TEST_COVER" + envBuildRebuildAll = "GATOR_BUILD_REBUILD_ALL" + envBuildVerbose = "GATOR_BUILD_VERBOSE" ) var ( @@ -29,8 +29,8 @@ var ( ) // Test run the go tests. -// To enable verbose mode set PROJECT_TEST_VERBOSE=1. -// To enable coverage mode set PROJECT_TEST_COVER=1. +// To enable verbose mode set GATOR_TEST_VERBOSE=1. +// To enable coverage mode set GATOR_TEST_COVER=1. func Test() error { goTest := sh.RunCmd("go", "test") @@ -53,8 +53,8 @@ func Lint() error { } // Build build the executable. -// To rebuild packages that are already up-to-date set PROJECT_BUILD_REBUILD_ALL=1 -// To enable verbose mode set PROJECT_BUILD_VERBOSE=1 +// To rebuild packages that are already up-to-date set GATOR_BUILD_REBUILD_ALL=1 +// To enable verbose mode set GATOR_BUILD_VERBOSE=1 func Build() error { main := "main.go" flags := ldflags()