We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf24101a commit0ecc1bfCopy full SHA for 0ecc1bf
cli/login.go
@@ -45,9 +45,9 @@ func login() *cobra.Command {
45
}
46
if!hasInitialUser {
47
// TODO: Bryan - is this check correct on windows?
48
-//if !isTTY(cmd.InOrStdin()) {
49
-//return xerrors.New("the initial user cannot be created in non-interactive mode. use the API")
50
-//}
+if!isTTY(cmd.InOrStdin()) {
+returnxerrors.New("the initial user cannot be created in non-interactive mode. use the API")
+}
51
_,_=fmt.Fprintf(cmd.OutOrStdout(),"%s Your Coder deployment hasn't been set up!\n",color.HiBlackString(">"))
52
53
_,err:=runPrompt(cmd,&promptui.Prompt{