Skip to content

Commit

Permalink
Fixing name so importing from this package works
Browse files Browse the repository at this point in the history
  • Loading branch information
hunoz committed May 27, 2023
1 parent ef7261e commit 7c213ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
6 changes: 3 additions & 3 deletions cmd/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7c213ae

Please sign in to comment.