From 7c213ae5bdd3fc458151832cd0fa99abf189fc46 Mon Sep 17 00:00:00 2001 From: David Gregory <42326109+hunoz@users.noreply.github.com> Date: Sat, 27 May 2023 15:12:03 -0500 Subject: [PATCH] Fixing name so importing from this package works --- README.md | 4 ++-- cmd/update/update.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 57c1cc9..ccfbc4d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# SparkCli +# Spark ## Description The Spark CLI is used to perform some operations in AWS Cognito, such as password change, forgot password, performing first sign in, and registering a TOTP device. This CLI will compliment future CLIs such as Haze and Maroon which will utilize this CLI's data to perform their own operations. More information on those will be available when they are ready for release. If you find the password policy to not work for your pool settings, I recommend forking this repository and updating the `CheckIfValidPassword` function in `cognito/configuration.go` to match your needs. ## Installation -1. Navigate to the [releases page](https://github.com/hunoz/SparkCli/releases) and download the binary for your operating system. If you do not see your operating system, please submit an issue with your OS and ARCH so that it can be added. +1. Navigate to the [releases page](https://github.com/hunoz/spark/releases) and download the binary for your operating system. If you do not see your operating system, please submit an issue with your OS and ARCH so that it can be added. 2. Place the binary in a location in your PATH (e.g. /usr/local/bin/spark) 3. Run `spark init` to initialize the CLI's settings. This will require input of the client ID, pool ID, and region. diff --git a/cmd/update/update.go b/cmd/update/update.go index 89c6fac..f71517c 100644 --- a/cmd/update/update.go +++ b/cmd/update/update.go @@ -14,7 +14,7 @@ import ( "github.com/fatih/color" ) -var CmdVersion = "v1.0.4" +var CmdVersion = "v1.0.5" type Release struct { Url string `json:"url,omitempty"` @@ -29,7 +29,7 @@ type Error struct { func CmdIsLatestVersion() (string, bool) { currentVersion := strings.Split(CmdVersion, "v")[1] - response, err := http.Get("https://api.github.com/repos/hunoz/SparkCli/releases/latest") + response, err := http.Get("https://api.github.com/repos/hunoz/spark/releases/latest") if err != nil { color.Red("Error fetching latest release: %v", err.Error()) os.Exit(1) @@ -88,7 +88,7 @@ var UpdateCmd = &cobra.Command{ // Here we need to get the asset for the current architecture assetFilename := fmt.Sprintf("spark-%v-%v", runtime.GOOS, runtime.GOARCH) - downloadUrl := fmt.Sprintf("https://github.com/hunoz/SparkCli/releases/download/%v/%v", latestVersion, assetFilename) + downloadUrl := fmt.Sprintf("https://github.com/hunoz/spark/releases/download/%v/%v", latestVersion, assetFilename) response, err := http.Get(downloadUrl) if err != nil {