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

Unhide rebuild and watch-build commands #161

Merged
merged 5 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixup! Unhide rebuild and watch-build commands
  • Loading branch information
cmoog committed Oct 29, 2020
commit 266d929300bbf1c46857086c97b412b8542d1898
4 changes: 2 additions & 2 deletions internal/cmd/envs.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func envsCommand() *cobra.Command {
lsEnvsCommand(&user),
stopEnvsCommand(&user),
rmEnvsCommand(&user),
watchBuildLogCommand(),
rebuildEnvCommand(),
watchBuildLogCommand(&user),
rebuildEnvCommand(&user),
createEnvCommand(&user),
editEnvCommand(&user),
)
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/rebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"golang.org/x/xerrors"
)

func rebuildEnvCommand() *cobra.Command {
func rebuildEnvCommand(user *string) *cobra.Command {
var follow bool
var force bool
cmd := &cobra.Command{
Expand All @@ -32,7 +32,7 @@ coder envs rebuild backend-env --force`,
if err != nil {
return err
}
env, err := findEnv(ctx, client, args[0], coder.Me)
env, err := findEnv(ctx, client, args[0], *user)
if err != nil {
return err
}
Expand Down Expand Up @@ -136,7 +136,7 @@ func trailBuildLogs(ctx context.Context, client *coder.Client, envID string) err
return nil
}

func watchBuildLogCommand() *cobra.Command {
func watchBuildLogCommand(user *string) *cobra.Command {
cmd := &cobra.Command{
Use: "watch-build [environment_name]",
Example: "coder watch-build front-end-env",
Expand All @@ -148,7 +148,7 @@ func watchBuildLogCommand() *cobra.Command {
if err != nil {
return err
}
env, err := findEnv(ctx, client, args[0], coder.Me)
env, err := findEnv(ctx, client, args[0], *user)
if err != nil {
return err
}
Expand Down