This repository was archived by the owner on Aug 30, 2024. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork18
Unide envs (create|edit) commands#168
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletionci/integration/envs_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletioncoder-sdk/client.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletionscoder-sdk/error.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletionsdocs/coder_envs.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletionsdocs/coder_envs_create.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## coder envs create | ||
create a new environment. | ||
### Synopsis | ||
Create a new Coder environment. | ||
``` | ||
coder envs create [environment_name] [flags] | ||
``` | ||
### Examples | ||
``` | ||
# create a new environment using default resource amounts | ||
coder envs create my-new-env --image ubuntu | ||
coder envs create my-new-powerful-env --cpu 12 --disk 100 --memory 16 --image ubuntu | ||
``` | ||
### Options | ||
``` | ||
-c, --cpu float32 number of cpu cores the environment should be provisioned with. | ||
-d, --disk int GB of disk storage an environment should be provisioned with. | ||
--follow follow buildlog after initiating rebuild | ||
-g, --gpus int number GPUs an environment should be provisioned with. | ||
-h, --help help for create | ||
-i, --image string name of the image to base the environment off of. | ||
-m, --memory float32 GB of RAM an environment should be provisioned with. | ||
-o, --org string ID of the organization the environment should be created under. | ||
-t, --tag string tag of the image the environment will be based off of. (default "latest") | ||
``` | ||
### Options inherited from parent commands | ||
``` | ||
--user string Specify the user whose resources to target (default "me") | ||
-v, --verbose show verbose output | ||
``` | ||
### SEE ALSO | ||
* [coder envs](coder_envs.md) - Interact with Coder environments | ||
45 changes: 45 additions & 0 deletionsdocs/coder_envs_edit.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## coder envs edit | ||
edit an existing environment and initiate a rebuild. | ||
### Synopsis | ||
Edit an existing environment and initate a rebuild. | ||
``` | ||
coder envs edit [flags] | ||
``` | ||
### Examples | ||
``` | ||
coder envs edit back-end-env --cpu 4 | ||
coder envs edit back-end-env --disk 20 | ||
``` | ||
### Options | ||
``` | ||
-c, --cpu float32 The number of cpu cores the environment should be provisioned with. | ||
-d, --disk int The amount of disk storage an environment should be provisioned with. | ||
--follow follow buildlog after initiating rebuild | ||
-g, --gpu int The amount of disk storage to provision the environment with. | ||
-h, --help help for edit | ||
-i, --image string name of the image you want the environment to be based off of. | ||
-m, --memory float32 The amount of RAM an environment should be provisioned with. | ||
-o, --org string name of the organization the environment should be created under. | ||
-t, --tag string image tag of the image you want to base the environment off of. (default "latest") | ||
``` | ||
### Options inherited from parent commands | ||
``` | ||
--user string Specify the user whose resources to target (default "me") | ||
-v, --verbose show verbose output | ||
``` | ||
### SEE ALSO | ||
* [coder envs](coder_envs.md) - Interact with Coder environments | ||
29 changes: 12 additions & 17 deletionsinternal/cmd/ceapi.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.