0.1.6 • Published 7 years ago

pw98 v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

pw98

Terminal application that customizable multiple process window.

basic

maximum

Installation

yarn global add pw98
# or
npm install -g pw98

you can install it to project local, too

Usage

cd your/project/path
pw98 ./config.json
# or
pw98 /any/config/absolute/path.js

Operation

keytarget panedescription
or -move selected pane. none -> pane1 -> pane2 -> ... -> none
1 - 9-select Nth pane
0-deselect pane
mselected panetoggle maximum / minimum pane
cselected pane or all panesclear log
rselected pane or all panesrestart process
Ctrl+c-exit pw98

Config Structure

Pane

keytypedesc
direction"row" | "column"direction to split pane
procsArray<Proc | Pane>can be nested

Proc

keytypeexample / description
namestring"test"
commandstring"yarn jest"
refreshbooleanrefresh old output before current output. default is false.

Examples

1. Simple ver (JSON)

{
  "direction": "row",
  "procs": [
    { "name": "pane1", "command": "echo sample1-1" },
    { "name": "pane2", "command": "echo sample1-2" }
  ]
}

example1

2. Complex ver (CommonJS Style)

const pane1 = { name: "pane1", command: "echo sample2-1" };
const pane2 = { name: "pane2", command: "echo sample2-2" };
const pane3 = { name: "pane3", command: "echo sample2-3" };
const pane4 = { name: "pane4", command: "echo sample2-4" };

module.exports = {
  direction: "row",
  procs: [
    pane1,
    {
      direction: "column",
      procs: [
        {
          direction: "row",
          procs: [pane2, pane3]
        },
        pane4
      ]
    }
  ]
};

example2


Development

Build (automaticaly)

$ yarn watch

Test

$ node bin/index.js ./examples/config.js