Closed YannMagnin closed 4 years ago
export async function sh(cmd: string): Promise<{ stdout: string; stderr: string }> {
return new Promise(function(resolve, reject) {
exec(cmd, (err, stdout, stderr) => {
if (err) reject(err)
else resolve({ stdout, stderr })
})
})
}
The cmd is encapsulated with the node exec() function, so this cmd need to pipe stdin for avoid deadlock. cf : #10
Remove spinner cursor on git clone
Add in keys management menu a trust host function
Using
blih_cli
version0.1.2
.When I try to clone a repository when the host fingerprint is not already registered...
...a deadlock appear during the clone of the repository (unable to stop the process using
CTRL+C
).Normally, when a new connection is set on an unknown host, the same warning is displayed, but with the line
Are you sure you want to continue connecting (yes/no/[fingerprint])?
then the user can select an action. Here, it seems likeblih_cli
overwrite the output (or something like this) and avoids user interaction with the warning (manually writeyes
display nothing but seems to fix the error).