openresty / openresty/lua-resty-shell

It's blocking apt-get update

Open
#22 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Raku
Stars
133
Forks
19
Avg merge
2h 31m
Merged PRs (30d)
1

Description

Hi, I have following code and was expecting line by line printing to screens instead of print all output

local shell = require "resty.shell"

local stdin = "hello"
local timeout = 1000  -- ms
local max_size = 4096  -- byte

local ok, stdout, stderr, reason, status =
    shell.run([[apt-get update]], stdin, timeout, max_size)
    
    ngx.say(ok)
    ngx.say("stdout " ..stdout)
    ngx.say("stderr " ..stderr)
    ngx.say("reason " ..reason)
    ngx.say(status)
    
    ngx.say("Good !!")
if not ok then
   ngx.say("errror")
end

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

Start by reading the shell.run invocation in the issue and the module documentation or entry point it refers to. Determine whether command output is buffered by design and what behavior is expected for apt-get update; done should include a documented or tested outcome for line-by-line output.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.