All Projects → kurehajime → viewb

kurehajime / viewb

Licence: MIT license
convert the command to a web server

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to viewb

pixi-console
Pixi.js console
Stars: ✭ 39 (+225%)
Mutual labels:  console-tool
ConsoleMenu
A simple, highly customizable, DOS-like console menu
Stars: ✭ 27 (+125%)
Mutual labels:  console-tool
CppConsoleTable
C++ Console Table: make text table in console easy and set up as you need
Stars: ✭ 53 (+341.67%)
Mutual labels:  console-tool
console-table
ConsoleTable helps you to display tabular data in a terminal/shell/console
Stars: ✭ 76 (+533.33%)
Mutual labels:  console-tool
coinbash
💰 A bash script (CLI) for displaying crypto currencies market data in a terminal 🖥
Stars: ✭ 110 (+816.67%)
Mutual labels:  console-tool
DelphiConsole
The Console class from C# ported to Delphi
Stars: ✭ 101 (+741.67%)
Mutual labels:  console-tool
terminalplot
No description or website provided.
Stars: ✭ 40 (+233.33%)
Mutual labels:  console-tool
django-boilerplate-3.6.1
Django served by Gunicorn running behind Nginx reverse proxy. Deploy to AWS Elastic Beanstalk with Fabric3!
Stars: ✭ 13 (+8.33%)
Mutual labels:  webservers

viewb

CircleCI

Convert the command to a web server

viewb

Usage

$ viewb  <COMMAND> <ARGS>

Option:
-p=<PORT>: Port(default:8080)
-h: Prints the first N lines.if minus value then prints the last N lines.
-o: Open web browser
-user=<USERNAME>: Basic Authentication user name
-pass=<PASSWORD>: Basic Authentication password
-e=<ENCODING>: input encoding

How to install

Download

or

Build yourself (Go lang).

go install github.com/kurehajime/viewb@latest

Example

Example 1 :Command to web server
$ viewb -p 8080 ls -la

http://localhost:8080
Stop: Ctrl+C

Open in browser http://localhost:8080

total 32  
drwxr-xr-x   6 user  staff   204  8  6 20:19 .  
drwx------+ 11 user  staff   374  8  6 20:17 ..  
-rw-r--r--@  1 user  staff  6148  8  6 20:19 .DS_Store  
-rw-r--r--   1 user  staff     5  8  6 20:18 Untitled-1.txt    
-rw-r--r--   1 user  staff  1557  8  6 20:19 Untitled-2.txt  
drwxr-xr-x   2 user  staff    68  8  6 20:19 test  
Example 2 :Script to web server
$ viewb ./HelloworldAndPingOne.sh

http://localhost:8080
Stop: Ctrl+C

Open in browser http://localhost:8080

Hello World!
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=60.380 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 60.380/60.380/60.380/0.000 ms
Example 3 :Basic Authentication
$ viewb -user laputa -pass balse echo booomb!

http://localhost:8080
Stop: Ctrl+C

Open in browser http://localhost:8080
And login.

Example 5 :open browser
$ viewb -o echo yah!

http://localhost:8080
Stop: Ctrl+C

Open automatically.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].