Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewLoginCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command
Use: "login SERVER",
Short: "Login into Microcks instance",
Long: "Login into Microcks instance",
Example: `microcks login http://locahost:8080
Example: `microcks login http://localhost:8080

# Provide name to your logged in context (Default context name is server name)
microcks login http://localhost:8080 --name
Expand Down
4 changes: 2 additions & 2 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ microcks start
microcks start --port [Port you want]

# Define your driver (by default docker)
microcks start --driver [driver you wnat either 'docker' or 'podman']
microcks start --driver [driver you want either 'docker' or 'podman']

# Define name of your microcks container/instance
microcks start --name [name of you container/instance]`,
microcks start --name [name of your container/instance]`,
RunE: func(cmd *cobra.Command, args []string) error {
if !output.IsTextOrJSON(outputFormat) {
return errors.Wrapf(errors.KindUsage, "--output must be one of: text, json")
Expand Down
2 changes: 1 addition & 1 deletion documentation/cmd/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Log in to a Microcks instance using username/password or SSO. Creates or updates
### Examples
```bash
# Login to microcks using a username and password
microcks login http://locahost:8080
microcks login http://localhost:8080

# Provide name to your logged in context (Default context name is server name)
microcks login http://localhost:8080 --name
Expand Down
2 changes: 1 addition & 1 deletion documentation/cmd/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ microcks start --port [Port you want]
microcks start --driver [docker-or-podman]

# Define name of your microcks container/instance
microcks start --name [name of you container/instance]
microcks start --name [name of your container/instance]

# Auto remove the container on exit
microcks start --rm
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/localconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (l *LocalConfig) GetAuth(server string) (*Auth, error) {
}
}

return nil, fmt.Errorf("Auth for '%s' is undifined", server)
return nil, fmt.Errorf("Auth for '%s' is undefined", server)
}

func (l *LocalConfig) UpsertAuth(auth Auth) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connectors/keycloak_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"golang.org/x/oauth2"
)

// KeycloakClient defines methods for cinteracting with Keycloak
// KeycloakClient defines methods for interacting with Keycloak
type KeycloakClient interface {
ConnectAndGetToken() (string, error)
ConnectAndGetTokenAndRefreshToken(string, string) (string, string, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/connectors/microcks_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (c *microcksClient) HttpClient() *http.Client {
}

func (c *microcksClient) GetKeycloakURL() (string, error) {
// Ensure we have a correct URL for retrieving Keycloal configuration.
// Ensure we have a correct URL for retrieving Keycloak configuration.
rel := &url.URL{Path: "keycloak/config"}
u := c.APIURL.ResolveReference(rel)

Expand Down
Loading