Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ecc1bf

Browse files
committed
Bring back tty check
1 parentf24101a commit0ecc1bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cli/login.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ func login() *cobra.Command {
4545
}
4646
if!hasInitialUser {
4747
// 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-
//}
48+
if!isTTY(cmd.InOrStdin()) {
49+
returnxerrors.New("the initial user cannot be created in non-interactive mode. use the API")
50+
}
5151
_,_=fmt.Fprintf(cmd.OutOrStdout(),"%s Your Coder deployment hasn't been set up!\n",color.HiBlackString(">"))
5252

5353
_,err:=runPrompt(cmd,&promptui.Prompt{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp