semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
26 stars 13 forks source link

Can't set editor to "subl --wait" #132

Closed quinn closed 5 years ago

quinn commented 5 years ago

Fails with:

error: Failed to open editor 'exec: "subl --wait": executable file not found in $PATH'

Which is obviously correct, there is no file called "subl --wait". --wait is a flag, not part of the filename.

quinn commented 5 years ago

FWIW, it works to set export EDITOR="subl --wait" for git, etc. so this shouldn't be something too surprising.

shiroyasha commented 5 years ago

This is indeed an issue. I didn't foresee additional flags in the name of the editor.

One way to go around this issue is to create a script, for example /usr/bin/local/sublwait:

#!/usr/bin/env bash

subl --wait $1
quinn commented 5 years ago

thx, will do that for now