mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 04:30:57 +01:00
renamed
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user