Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

fix(credential-processs): Remove initial tty available check #44

Merged
merged 1 commit into from
Aug 25, 2021
Merged
Changes from all commits
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
11 changes: 1 addition & 10 deletions cmd/bmx/bmx_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@
package main

import (
"log"

"github.com/rtkwlf/bmx/config"
"github.com/rtkwlf/bmx/console"
)

func selectConsoleReader(userConfig config.UserConfig, limited bool) console.ConsoleReader {
if !limited {
return console.NewConsoleReader(false)
}

if !console.IsTtyAvailable() {
log.Fatal("Cannot create tty connection for writing output")
}

return console.NewConsoleReader(true)
return console.NewConsoleReader(limited)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just impact the non-Mac cases, as the darwin logic handles the applescript selection.

}