Skip to content

Commit

Permalink
change print
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Nov 11, 2024
1 parent 2d7e95f commit bdc7c26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/substreams/registry-login.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func runRegistryLoginE(cmd *cobra.Command, args []string) error {

isFileExists := checkFileExists(registryTokenFilename)
if isFileExists {
confirmOverwrite, err := runConfirmForm("Token already saved to registry-token")
confirmOverwrite, err := runConfirmForm("Token already saved to ~/.config/substreams/registry-token, do you want to overwrite it?")
if err != nil {
return fmt.Errorf("running confirm form: %w", err)
}
Expand Down
10 changes: 0 additions & 10 deletions cmd/substreams/registry-publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ var registryPublish = &cobra.Command{
RunE: runRegistryPublish,
}

// FLOW:
// - The user get an API_KEY (registry token) on substreams.dev
// - Set API_KEY :
// - If the user doesn't have the API_KEY SET FOR REGISTRY, let's redirect him to `substreams.dev` and grab a registry token
// - If it has one already, use it
// - SET UP Publish request :
// - If the user does the command on a manifest, pack it first
// - If the user does provide an spkg, use it as is
// - If the user does provide a github release url, download the spkg and pack it

func runRegistryPublish(cmd *cobra.Command, args []string) error {
apiEndpoint := "https://substreams.dev"
if newValue := os.Getenv("SUBSTREAMS_REGISTRY_ENDPOINT"); newValue != "" {
Expand Down

0 comments on commit bdc7c26

Please sign in to comment.