commit | 2a2b3b644d19e55bc81d34ea48a87a510e6d20e6 | [log] [tgz] |
---|---|---|
author | Ali Ghassemi <aghassemi@google.com> | Tue Apr 28 14:28:05 2015 -0700 |
committer | Ali Ghassemi <aghassemi@google.com> | Tue Apr 28 14:28:33 2015 -0700 |
tree | 063f273c16df2bae134afc2b2e38079e3f815142 | |
parent | 34e354deaf58f118621758054293f628c33948c1 [diff] |
pipe2browser: Support for the PromptToInstallExtesion. Fixing the VDL generation target and some README file cleanups. Closes https://github.com/vanadium/pipe2browser/issues/1 MultiPart: 2/2 Change-Id: I5650bed9a5d04a75e5c09620f3c3c6bdbbcfbd24
P2B allows one to pipe anything from shell console to the browser. Data being piped to the browser then is displayed in a graphical and formatted way by a viewer. Viewers are pluggable pieces of code that know how to handle and display a stream of data.
For example one can do:
echo "Hi!" | p2b users/jane@google.com/chrome/p2b/jane/console
or
cat cat.jpg | p2b -binary users/jane@google.com/chrome/p2b/jane/image
where users/jane@google.com/chrome/p2b/jane is the Object name where p2b service is running in the browser. The suffix console or image specifies what viewer should be used to display the data.
Please see the help page inside the P2B application for detailed tutorials.
# build everything and start a web server at 8000 make start
Navigate to http://localhost:8000 and publish under a name such as ‘foo’ then run the vbash
tool to setup your Vanadium credentials
# run vbash to setup your Vanadium credentials $V23_ROOT/release/go/src/v.io/x/ref/cmd/vbash
and then run p2b
cli client, for instance:
# run a sample p2b command echo "Hello World" | go/bin/p2b users/<<email-address>>/chrome/p2b/foo/console
To stop simply Ctrl-C the console that started it
To clean make clean