Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Remote Control Support #294

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

thebinary
Copy link

@thebinary thebinary commented May 15, 2024

Add remote control support along with builtin remote controlling command.

Changes Introduced

  • addition of new package internal/remote
  • add remote coral command to root command
  • addition of environment var parsing at main called SLIDES_REMOTE_SOCKET. Presence of this triggers listening of remote control command at given UNIX socket path. This can then be used by sides remote socket [flags] [command] command to control that slide session.

Use Case

  • Navigating and Controlling Slide sessions using external processes eg: scripts, to use slides along with other workflows as well.

listens on unix socket to interact with slides using command relay
client (remote controller) to communicate with socket command relay listener
to interact with SocketRemote from command-line
as remote control entry command
triggered when using the command with socket file that does not exist.
@thebinary
Copy link
Author

DEMO

slides-remote

use `socketPath` instead of `socketFile` where
`socketPath` are in forms like:
- unix:/tmp/slides.sock
- tcp:localhost:8091
@thebinary thebinary changed the title Remote Control Support feat: Remote Control Support Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant