blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.18k stars 576 forks source link

[Feature request] x-callback-url api and shortcuts #553

Closed drewcassidy closed 4 years ago

drewcassidy commented 6 years ago

With the addition of Siri Shortcuts and the Shortcuts app to iOS it would be useful to have an x-callback-url api for running commands, for example to test connection to a server or open a new mosh/ssh connection. The callbacks can be performed by Apple’s own shortcuts app, or from other apps with that functionality like PCalc

SteffenDE commented 6 years ago

I‘d love to see a Shortcuts integration. While there already is a native way to run an SSH script, there is no way to authenticate using SSH keys. So having a „Run Script via SSH“ using Blink would be a very nice feature!

drewcassidy commented 6 years ago

yup, and possibly keep an interactive session open after running the script

NightMachinery commented 6 years ago

It’s also useful for emergencies; I can just say “blink fire” and it’ll start the appropriate script to deal with it. It’ll also be very useful if Blink could feed location to the script.

MidnightRocket commented 4 years ago

Hi, I am a bit confused. It seems this feature was implemented in 12.8. And in version 13.3 the configuration for x-callback-url appears in the config menu. But I can not seem to get it to work. When I make a call on "blinkshell://run?key=SECRET&cmd=ls" nothing happens, except blink opened. No command is executed. I would really appreciate some clarification as to whether or not this feature is fully implemented.

yury commented 4 years ago

We disabled it for now. Will restore soon.

tomminux commented 4 years ago

We disabled it for now. Will restore soon.

Any precision on “when”?

idagroup commented 4 years ago

I'm anxious to see this return as well. We could finally use Blink in conjunction with RoyalTS

javierdemartin commented 4 years ago

x-callback-url has been re-added to the codebase (#1061) it'll be available in the coming future (can't exactly tell when). Will be working on adding Shortcuts integration in the future :)

ventz commented 4 years ago

@javierdemartin @yury could you push it to TestFlight?

javierdemartin commented 4 years ago

We can’t give you an estimate right now because of some other ongoing work. Possibly in the coming weeks, I’ll ping you once it’s up.

ventz commented 4 years ago

Thanks!!

javierdemartin commented 4 years ago

@ventz Current App Store Version 13.5.5 restores this

ventz commented 4 years ago

@javierdemartin Thanks. Tested it as soon as I saw it push to TestFlight (works! :)) It's fantastic for Siri Shortcuts automation and being able to execute commands.