Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 05f9410

Browse files
authored
chore: rename instances of Coder Enterprise to Coder (#304)
We rebranded the product from Coder Enterprise to Coder; this change updates the text accordingly. Some references (such as URLs and variable names) have not been changed.
1 parent baeb8ac commit 05f9410

25 files changed

+41
-41
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![build](https://github.com/cdr/coder-cli/workflows/build/badge.svg)
66
[![Go Report Card](https://goreportcard.com/badge/cdr.dev/coder-cli)](https://goreportcard.com/report/cdr.dev/coder-cli)
77

8-
`coder` is a command line utility for Coder Enterprise.
8+
`coder` is a command line utility for Coder.
99

1010
To report bugs and request features, please [open an issue](https://github.com/cdr/coder-cli/issues/new).
1111

coder-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coder-sdk
22

3-
`coder-sdk` is a Go client library for [Coder Enterprise](https://coder.com).
3+
`coder-sdk` is a Go client library for [Coder](https://coder.com).
44
It is not yet stable and therefore we do not recommend depending on the current state of its public APIs.
55

66
## Usage

coder-sdk/config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ const (
1515
AuthProviderOIDC AuthProviderType = "oidc"
1616
)
1717

18-
// ConfigAuth describes the authentication configuration for a Coder Enterprise deployment.
18+
// ConfigAuth describes the authentication configuration for a Coder deployment.
1919
type ConfigAuth struct {
2020
ProviderType *AuthProviderType `json:"provider_type"`
2121
OIDC *ConfigOIDC `json:"oidc"`
2222
SAML *ConfigSAML `json:"saml"`
2323
}
2424

25-
// ConfigOIDC describes the OIDC configuration for single-signon support in Coder Enterprise.
25+
// ConfigOIDC describes the OIDC configuration for single-signon support in Coder.
2626
type ConfigOIDC struct {
2727
ClientID *string `json:"client_id"`
2828
ClientSecret *string `json:"client_secret"`
@@ -38,26 +38,26 @@ type ConfigSAML struct {
3838
PublicKeyCertificate *string `json:"public_key_certificate"`
3939
}
4040

41-
// ConfigOAuthBitbucketServer describes the Bitbucket integration configuration for a Coder Enterprise deployment.
41+
// ConfigOAuthBitbucketServer describes the Bitbucket integration configuration for a Coder deployment.
4242
type ConfigOAuthBitbucketServer struct {
4343
BaseURL string `json:"base_url" diff:"oauth.bitbucket_server.base_url"`
4444
}
4545

46-
// ConfigOAuthGitHub describes the Github integration configuration for a Coder Enterprise deployment.
46+
// ConfigOAuthGitHub describes the Github integration configuration for a Coder deployment.
4747
type ConfigOAuthGitHub struct {
4848
BaseURL string `json:"base_url"`
4949
ClientID string `json:"client_id"`
5050
ClientSecret string `json:"client_secret"`
5151
}
5252

53-
// ConfigOAuthGitLab describes the GitLab integration configuration for a Coder Enterprise deployment.
53+
// ConfigOAuthGitLab describes the GitLab integration configuration for a Coder deployment.
5454
type ConfigOAuthGitLab struct {
5555
BaseURL string `json:"base_url"`
5656
ClientID string `json:"client_id" `
5757
ClientSecret string `json:"client_secret"`
5858
}
5959

60-
// ConfigOAuth describes the aggregate git integration configuration for a Coder Enterprise deployment.
60+
// ConfigOAuth describes the aggregate git integration configuration for a Coder deployment.
6161
type ConfigOAuth struct {
6262
BitbucketServer ConfigOAuthBitbucketServer `json:"bitbucket_server"`
6363
GitHub ConfigOAuthGitHub `json:"github"`
@@ -96,7 +96,7 @@ type configSetupMode struct {
9696
SetupMode bool `json:"setup_mode"`
9797
}
9898

99-
// SiteSetupModeEnabled fetches the current setup_mode state of a Coder Enterprise deployment.
99+
// SiteSetupModeEnabled fetches the current setup_mode state of a Coder deployment.
100100
func (c *DefaultClient) SiteSetupModeEnabled(ctx context.Context) (bool, error) {
101101
var conf configSetupMode
102102
if err := c.requestBody(ctx, http.MethodGet, "/api/private/config/setup-mode", nil, &conf); err != nil {

coder-sdk/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Package coder provides simple APIs for integrating Go applications with Coder Enterprise.
1+
// Package coder provides simple APIs for integrating Go applications with Coder.
22
package coder

coder-sdk/interface.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type Client interface {
5353
// PutSiteConfigOAuth sets the sitewide git provider OAuth configuration.
5454
PutSiteConfigOAuth(ctx context.Context, req ConfigOAuth) error
5555

56-
// SiteSetupModeEnabled fetches the current setup_mode state of a Coder Enterprise deployment.
56+
// SiteSetupModeEnabled fetches the current setup_mode state of a Coder deployment.
5757
SiteSetupModeEnabled(ctx context.Context) (bool, error)
5858

5959
// SiteConfigExtensionMarketplace fetches the extension marketplace configuration.
@@ -160,7 +160,7 @@ type Client interface {
160160
// UpdateOrganization applys a partial update of an Organization resource.
161161
UpdateOrganization(ctx context.Context, orgID string, req UpdateOrganizationReq) error
162162

163-
// CreateOrganization creates a new Organization in Coder Enterprise.
163+
// CreateOrganization creates a new Organization in Coder.
164164
CreateOrganization(ctx context.Context, req CreateOrganizationReq) error
165165

166166
// DeleteOrganization deletes an organization.
@@ -190,7 +190,7 @@ type Client interface {
190190
// ImageTagByID fetch an image tag by ID.
191191
ImageTagByID(ctx context.Context, imageID, tagID string) (*ImageTag, error)
192192

193-
// CreateAPIToken creates a new APIToken for making authenticated requests to Coder Enterprise.
193+
// CreateAPIToken creates a new APIToken for making authenticated requests to Coder.
194194
CreateAPIToken(ctx context.Context, userID string, req CreateAPITokenReq) (string, error)
195195

196196
// APITokens fetches all APITokens owned by the given user.

coder-sdk/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type CreateOrganizationReq struct {
9090
MemoryProvisioningRate float32 `json:"memory_provisioning_rate"`
9191
}
9292

93-
// CreateOrganization creates a new Organization in Coder Enterprise.
93+
// CreateOrganization creates a new Organization in Coder.
9494
func (c *DefaultClient) CreateOrganization(ctx context.Context, req CreateOrganizationReq) error {
9595
return c.requestBody(ctx, http.MethodPost, "/api/v0/orgs", req, nil)
9696
}

coder-sdk/tokens.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"time"
77
)
88

9-
// APIToken describes a Coder Enterprise APIToken resource for use in API requests.
9+
// APIToken describes a Coder APIToken resource for use in API requests.
1010
type APIToken struct {
1111
ID string `json:"id"`
1212
Name string `json:"name"`
@@ -24,7 +24,7 @@ type createAPITokenResp struct {
2424
Key string `json:"key"`
2525
}
2626

27-
// CreateAPIToken creates a new APIToken for making authenticated requests to Coder Enterprise.
27+
// CreateAPIToken creates a new APIToken for making authenticated requests to Coder.
2828
func (c *DefaultClient) CreateAPIToken(ctx context.Context, userID string, req CreateAPITokenReq) (token string, _ error) {
2929
var resp createAPITokenResp
3030
err := c.requestBody(ctx, http.MethodPost, "/api/v0/api-keys/"+userID, req, &resp)

coder-sdk/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type User struct {
2020
UpdatedAt time.Time `json:"updated_at" table:"-"`
2121
}
2222

23-
// Role defines a Coder Enterprise permissions role group.
23+
// Role defines a Coder permissions role group.
2424
type Role string
2525

2626
// Site Roles.

docs/coder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## coder
22

3-
coder provides a CLI for working with an existing Coder Enterprise installation
3+
coder provides a CLI for working with an existing Coder installation
44

55
### Options
66

docs/coder_completion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ MacOS:
6666

6767
### SEE ALSO
6868

69-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
69+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
7070

docs/coder_config-ssh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ coder config-ssh [flags]
1313
### Options
1414

1515
```
16-
--filepath string overide the default path of your ssh config file (default "~/.ssh/config")
16+
--filepath string override the default path of your ssh config file (default "~/.ssh/config")
1717
-h, --help help for config-ssh
18-
--remove remove the auto-generated Coder Enterprise ssh config
18+
--remove remove the auto-generated Coder ssh config
1919
```
2020

2121
### Options inherited from parent commands
@@ -26,5 +26,5 @@ coder config-ssh [flags]
2626

2727
### SEE ALSO
2828

29-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
29+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
3030

docs/coder_envs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Perform operations on the Coder environments owned by the active user.
2020

2121
### SEE ALSO
2222

23-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
23+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2424
* [coder envs create](coder_envs_create.md) - create a new environment.
2525
* [coder envs create-from-config](coder_envs_create-from-config.md) - create a new environment from a template
2626
* [coder envs edit](coder_envs_edit.md) - edit an existing environment and initiate a rebuild.

docs/coder_images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ Manage existing images and/or import new ones.
2121

2222
### SEE ALSO
2323

24-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
24+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2525
* [coder images ls](coder_images_ls.md) - list all images available to the active user
2626

docs/coder_login.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Authenticate this client for future operations
44

55
```
6-
coder login [Coder Enterprise URL eg. https://my.coder.domain/] [flags]
6+
coder login [Coder URL eg. https://my.coder.domain/] [flags]
77
```
88

99
### Options
@@ -20,5 +20,5 @@ coder login [Coder Enterprise URL eg. https://my.coder.domain/] [flags]
2020

2121
### SEE ALSO
2222

23-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
23+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2424

docs/coder_logout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ coder logout [flags]
2020

2121
### SEE ALSO
2222

23-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
23+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2424

docs/coder_ssh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ coder ssh my-dev pwd
2727

2828
### SEE ALSO
2929

30-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
30+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
3131

docs/coder_sync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ coder sync [local directory] [<env name>:<remote directory>] [flags]
2121

2222
### SEE ALSO
2323

24-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
24+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2525

docs/coder_tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Statically authenticate using the token value with the `CODER_TOKEN` and `CODER_
2121

2222
### SEE ALSO
2323

24-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
24+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2525
* [coder tokens create](coder_tokens_create.md) - create generates a new API token and prints it to stdout
2626
* [coder tokens ls](coder_tokens_ls.md) - show the user's active API tokens
2727
* [coder tokens regen](coder_tokens_regen.md) - regenerate an API token by its unique ID and print the new token to stdout

docs/coder_urls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Interact with environment DevURLs
1616

1717
### SEE ALSO
1818

19-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
19+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2020
* [coder urls create](coder_urls_create.md) - Create a new devurl for an environment
2121
* [coder urls ls](coder_urls_ls.md) - List all DevURLs for an environment
2222
* [coder urls rm](coder_urls_rm.md) - Remove a dev url

docs/coder_users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Interact with Coder user accounts
1616

1717
### SEE ALSO
1818

19-
* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
19+
* [coder](coder.md) - coder provides a CLI for working with an existing Coder installation
2020
* [coder users ls](coder_users_ls.md) - list all user accounts
2121

internal/cmd/ceapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"cdr.dev/coder-cli/pkg/clog"
1313
)
1414

15-
// Helpers for working with the Coder Enterprise API.
15+
// Helpers for working with the Coder API.
1616

1717
// lookupUserOrgs gets a list of orgs the user is apart of.
1818
func lookupUserOrgs(user *coder.User, orgs []coder.Organization) []coder.Organization {

internal/cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var verbose bool = false
1515
func Make() *cobra.Command {
1616
app := &cobra.Command{
1717
Use: "coder",
18-
Short: "coder provides a CLI for working with an existing Coder Enterprise installation",
18+
Short: "coder provides a CLI for working with an existing Coder installation",
1919
SilenceErrors: true,
2020
SilenceUsage: true,
2121
DisableAutoGenTag: true,

internal/cmd/configssh.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
const sshStartToken = "# ------------START-CODER-ENTERPRISE-----------"
2424
const sshStartMessage = `# The following has been auto-generated by "coder config-ssh"
25-
# to make accessing your Coder Enterprise environments easier.
25+
# to make accessing your Coder environments easier.
2626
#
2727
# To remove this blob, run:
2828
#
@@ -43,8 +43,8 @@ func configSSHCmd() *cobra.Command {
4343
Long: "Inject the proper OpenSSH configuration into your local SSH config file.",
4444
RunE: configSSH(&configpath, &remove),
4545
}
46-
cmd.Flags().StringVar(&configpath, "filepath", filepath.Join("~", ".ssh", "config"), "overide the default path of your ssh config file")
47-
cmd.Flags().BoolVar(&remove, "remove", false, "remove the auto-generated Coder Enterprise ssh config")
46+
cmd.Flags().StringVar(&configpath, "filepath", filepath.Join("~", ".ssh", "config"), "override the default path of your ssh config file")
47+
cmd.Flags().BoolVar(&remove, "remove", false, "remove the auto-generated Coder ssh config")
4848

4949
return cmd
5050
}
@@ -74,7 +74,7 @@ func configSSH(configpath *string, remove *bool) func(cmd *cobra.Command, _ []st
7474
currentConfig, didRemoveConfig := removeOldConfig(currentConfig)
7575
if *remove {
7676
if !didRemoveConfig {
77-
return xerrors.Errorf("the Coder Enterprise ssh configuration section could not be safely deleted or does not exist")
77+
return xerrors.Errorf("the Coder ssh configuration section could not be safely deleted or does not exist")
7878
}
7979

8080
err = writeStr(*configpath, currentConfig)
@@ -110,7 +110,7 @@ func configSSH(configpath *string, remove *bool) func(cmd *cobra.Command, _ []st
110110
}
111111

112112
if !sshAvailable(envsWithProviders) {
113-
return xerrors.New("SSH is disabled or not available for any environments in your Coder Enterprise deployment.")
113+
return xerrors.New("SSH is disabled or not available for any environments in your Coder deployment.")
114114
}
115115

116116
newConfig := makeNewConfigs(user.Username, envsWithProviders, privateKeyFilepath)

internal/cmd/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
func loginCmd() *cobra.Command {
2323
return &cobra.Command{
24-
Use: "login [Coder Enterprise URL eg. https://my.coder.domain/]",
24+
Use: "login [Coder URL eg. https://my.coder.domain/]",
2525
Short: "Authenticate this client for future operations",
2626
Args: xcobra.ExactArgs(1),
2727
RunE: func(cmd *cobra.Command, args []string) error {

internal/sync/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package sync contains logic for establishing a file sync between a local machine and a Coder Enterprise environment.
1+
// Package sync contains logic for establishing a file sync between a local machine and a Coder environment.
22
package sync
33

44
import (

0 commit comments

Comments
 (0)