This commit is contained in:
2023-03-29 13:16:38 +02:00
parent b8816f910a
commit f2b3fb3b96
29 changed files with 85 additions and 85 deletions

View File

@@ -33,7 +33,7 @@ all: buildlocal
buildlocal:
go build -ldflags "-X 'github.com/tlinden/cenophane/upctl/cfg.VERSION=$(VERSION)'"
go build -ldflags "-X 'github.com/tlinden/ephemerup/upctl/cfg.VERSION=$(VERSION)'"
release:
./mkrel.sh $(tool) $(version)

View File

@@ -19,8 +19,8 @@ package cmd
import (
"errors"
"github.com/spf13/cobra"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/cenophane/upctl/lib"
"github.com/tlinden/ephemerup/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/lib"
)
func DeleteCommand(conf *cfg.Config) *cobra.Command {

View File

@@ -19,8 +19,8 @@ package cmd
import (
"errors"
"github.com/spf13/cobra"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/cenophane/upctl/lib"
"github.com/tlinden/ephemerup/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/lib"
)
func DescribeCommand(conf *cfg.Config) *cobra.Command {

View File

@@ -19,8 +19,8 @@ package cmd
import (
"errors"
"github.com/spf13/cobra"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/cenophane/upctl/lib"
"github.com/tlinden/ephemerup/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/lib"
)
func DownloadCommand(conf *cfg.Config) *cobra.Command {

View File

@@ -18,8 +18,8 @@ package cmd
import (
"github.com/spf13/cobra"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/cenophane/upctl/lib"
"github.com/tlinden/ephemerup/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/lib"
)
func ListCommand(conf *cfg.Config) *cobra.Command {

View File

@@ -22,7 +22,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/cfg"
"os"
"strings"
)

View File

@@ -19,8 +19,8 @@ package cmd
import (
"errors"
"github.com/spf13/cobra"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/cenophane/upctl/lib"
"github.com/tlinden/ephemerup/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/lib"
)
func UploadCommand(conf *cfg.Config) *cobra.Command {

View File

@@ -1,4 +1,4 @@
module github.com/tlinden/cenophane/upctl
module github.com/tlinden/ephemerup/upctl
go 1.18
@@ -10,7 +10,7 @@ require (
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.15.0
github.com/tlinden/cenophane/common v0.0.0-00010101000000-000000000000
github.com/tlinden/ephemerup/common v0.0.0-00010101000000-000000000000
)
require (
@@ -50,4 +50,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace github.com/tlinden/cenophane/common => ../common
replace github.com/tlinden/ephemerup/common => ../common

View File

@@ -25,8 +25,8 @@ import (
"github.com/imroc/req/v3"
"github.com/jarcoal/httpmock"
"github.com/schollz/progressbar/v3"
"github.com/tlinden/cenophane/common"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/ephemerup/common"
"github.com/tlinden/ephemerup/upctl/cfg"
"mime"
"os"
"path/filepath"

View File

@@ -21,7 +21,7 @@ import (
//"github.com/alecthomas/repr"
"fmt"
"github.com/jarcoal/httpmock"
"github.com/tlinden/cenophane/upctl/cfg"
"github.com/tlinden/ephemerup/upctl/cfg"
"net/http"
"testing"
)
@@ -39,7 +39,7 @@ type Unit struct {
method string // method to use
}
// simulate our cenophane server
// simulate our ephemerup server
func Intercept(tt Unit) {
httpmock.RegisterResponder(tt.method, endpoint+tt.route,
func(request *http.Request) (*http.Response, error) {

View File

@@ -23,7 +23,7 @@ import (
"fmt"
"github.com/imroc/req/v3"
"github.com/olekukonko/tablewriter"
"github.com/tlinden/cenophane/common"
"github.com/tlinden/ephemerup/common"
"os"
"time"
)

View File

@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package main
import (
"github.com/tlinden/cenophane/upctl/cmd"
"github.com/tlinden/ephemerup/upctl/cmd"
)
func main() {