Move to public repo
This commit is contained in:
parent
ae094a566c
commit
7431eb94f1
@ -7,11 +7,8 @@ env:
|
||||
PACKAGE_NAME: eia-api-go
|
||||
BINARY_PATH: bin
|
||||
BINARY_NAME: eia-client
|
||||
GO_MOD_PATH: gitea.libretechconsulting.com/50w/eia-api-go
|
||||
GO_MOD_PATH: gitea.libretechconsulting.com/rmcguire/eia-api-go
|
||||
GO_GIT_HOST: gitea.libretechconsulting.com
|
||||
# DOCKER_HOST: "unix:///var/run/user/1000/docker.sock"
|
||||
# DOCKER_ORG: "rmcguire"
|
||||
# DOCKER_LATEST: "latest"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -32,6 +29,7 @@ jobs:
|
||||
env:
|
||||
API_TOKEN: ${{ secrets.API_TOKEN }} # Replace with a Gitea token stored in repository secrets
|
||||
run: |
|
||||
echo "Pushing ./$BINARY_PATH/$BINARY_NAME to ${GITHUB_SERVER_URL} packages for ${GITHUB_REPOSITORY_OWNER} as ${PACKAGE_NAME}@${{ github.ref_name }}"
|
||||
if [ -f ./${BINARY_PATH}/${BINARY_NAME} ]; then
|
||||
curl -X PUT \
|
||||
-H "Authorization: token ${API_TOKEN}" \
|
||||
|
4
LICENSE
4
LICENSE
@ -281,7 +281,7 @@ If you develop a new program, and you want it to be of the greatest possible use
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
eia-api-go
|
||||
Copyright (C) 2024 50W
|
||||
Copyright (C) 2024 Ryan D. McGuire
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
@ -293,7 +293,7 @@ Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
eia-api-go Copyright (C) 2024 50W
|
||||
eia-api-go Copyright (C) 2024 Ryan D. McGuire
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/goccy/go-yaml"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/internal/util"
|
||||
)
|
||||
|
||||
var GetFacetsCmd = &cobra.Command{
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/goccy/go-yaml"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/pkg/eia"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/pkg/eia"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"github.com/k0kubun/pp/v3"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/internal/util"
|
||||
)
|
||||
|
||||
var listFacetsCmd = &cobra.Command{
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/k0kubun/pp/v3"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/pkg/eia"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/pkg/eia"
|
||||
)
|
||||
|
||||
var listRoutesCmd = &cobra.Command{
|
||||
|
@ -31,9 +31,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/cmd/get"
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/cmd/list"
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/cmd/get"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/cmd/list"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/internal/util"
|
||||
)
|
||||
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/pkg/eia"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/pkg/eia"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/pkg/eia"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/pkg/eia"
|
||||
)
|
||||
|
||||
// Given args of <route> <facet>, complete either the route arg or the
|
||||
|
@ -3,8 +3,8 @@ package util
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
eiaapi "gitea.libretechconsulting.com/50W/eia-api-go/api"
|
||||
"gitea.libretechconsulting.com/50W/eia-api-go/pkg/eia"
|
||||
eiaapi "gitea.libretechconsulting.com/rmcguire/eia-api-go/api"
|
||||
"gitea.libretechconsulting.com/rmcguire/eia-api-go/pkg/eia"
|
||||
)
|
||||
|
||||
func GetRouteType(cmd *cobra.Command, route string) (eia.RouteType, error) {
|
||||
|
@ -21,7 +21,7 @@ THE SOFTWARE.
|
||||
*/
|
||||
package main
|
||||
|
||||
import "gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/cmd"
|
||||
import "gitea.libretechconsulting.com/rmcguire/eia-api-go/cmd/eia-client/cmd"
|
||||
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module gitea.libretechconsulting.com/50W/eia-api-go
|
||||
module gitea.libretechconsulting.com/rmcguire/eia-api-go
|
||||
|
||||
go 1.23.3
|
||||
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/deepmap/oapi-codegen/pkg/securityprovider"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
eiaapi "gitea.libretechconsulting.com/50W/eia-api-go/api"
|
||||
eiaapi "gitea.libretechconsulting.com/rmcguire/eia-api-go/api"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
eiaapi "gitea.libretechconsulting.com/50W/eia-api-go/api"
|
||||
eiaapi "gitea.libretechconsulting.com/rmcguire/eia-api-go/api"
|
||||
)
|
||||
|
||||
func newLoggingMiddleware(logger *zerolog.Logger, level zerolog.Level) eiaapi.RequestEditorFn {
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
eiaapi "gitea.libretechconsulting.com/50W/eia-api-go/api"
|
||||
eiaapi "gitea.libretechconsulting.com/rmcguire/eia-api-go/api"
|
||||
)
|
||||
|
||||
// For reflected API requests, dynamically replace certain
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
"k8s.io/utils/ptr"
|
||||
|
||||
eiaapi "gitea.libretechconsulting.com/50W/eia-api-go/api"
|
||||
eiaapi "gitea.libretechconsulting.com/rmcguire/eia-api-go/api"
|
||||
)
|
||||
|
||||
func TestGetRoutes(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user