vercel / vercel/hyper

Running a simple command and receive the output (Plugins)

Open
#3,191 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

I've spent the whole weekend trying to figure out how to run a command on a session/tab and receive the output. But I couldn't.

Is there a way to run a command such a echo $USER on a open session? That should give me enzo but I have another session which using ssh and the output should be root

I tried using const { exec } = require('child_process'); but this only works on my local machine.

I also played with the rpc api, but I don't know how to receive the output after running rpc.emit('session data', uid + data)

Any ideas?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by tracing the plugin RPC API and the session data event, then determine whether an open session can execute a command and return output; done would be a documented, reproducible plugin path or a clearly scoped feature request.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.