aonez / Keka

The macOS & iOS file archiver
https://www.keka.io
4.84k stars 238 forks source link

[BUG] Terminal support doesn't work #1378

Open simonbcn opened 10 months ago

simonbcn commented 10 months ago

Configuration

Describe the bug

$ echo $PATH
/opt/local/bin/ /usr/local/bin /Users/juan/.local/bin /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin

$ Keka
fish: Unknown command: Keka

Keka command is not found. Where is it installed?

aonez commented 10 months ago

https://github.com/aonez/Keka/wiki/Terminal-support

Normally this will be:

/Applications/Keka.app/Contents/MacOS/Keka --cli
simonbcn commented 10 months ago

Ok, that does work but that is not what it says in the wiki and I find it inconvenient. Wouldn't it be better to install a script or similar that allows you to run it in the terminal simply using Keka?

aonez commented 10 months ago

Fair enough, I’ll update the wiki shortly.

gingerbeardman commented 10 months ago

Could you do alias keka="/Applications/Keka.app/Contents/MacOS/Keka --cli"

But IMHO the expectation would be for keka on cli to act like a cli program, so running with no further arguments would produce help text. But right now it launches the GUI app.

aonez commented 10 months ago

Thanks @gingerbeardman, the alias is a great option.

But IMHO the expectation would be for keka on cli to act like a cli program, so running with no further arguments would produce help text. But right now it launches the GUI app.

Found no way to detect when it is running solely on the Terminal.

aonez commented 10 months ago

The documentation is updated now 👍🏼