You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the client code similar to webcommand client code - or if you prefer use directly the webcommand module in index.html via browserify (see http://github.com/ogt/boxchareditor for an example of how to do that)
Convert from sorter to generic command server
Derive the utility command to use from domain name (provide map domain name -> utility name, use xxxer whenever available)
Refactor uses of sort in the sorter code to use the dynamically derived (from hostname) command. No mention should exist of the word sort.
If domain name is not in map, then the home page should be in a wrapper page that displays essentially the map ( utility name -> server's url ) as a table
add deployall shell script in the repo that iterates over map and
creates heroku apps with corresponding name if app not exists and pushes the code there
do the same for the wrapper deploy webcommandserver.herokuapp.com
each app should have same owner's/collaborators as the github webcommand repos.
rename sorter repo to webcommandserver repo, have webcommandserver repo point to webcommandserver app
add generic readme for github repo
If domain is localhost) - allow overriding of utility name localhost:8000/sed? instead of localhost:8000/?args.. for easier testing
add the browser command/arguments/input/output code in the wrapper page - but given there is no selected command display instead of the command name a drop-down with all commands. On execute we send the request to the correspond full url of the server for that command (as found from the map) - need to resolve cross site scripting issue
add makefile that drives man page scripts, deploy scripts, test scripts
add man page generating script, which generates html versions of ubuntu man pages for all commands listed. Include link to the html page in the home page (in case of wrapper, add the man page in the [command, server url, manpage] listing (check https://devcenter.heroku.com/articles/stack for heroku's os)
Server-side piping
Allow one command to be able to pipe its output to another command instead of stdout. Add a pipe parameter (in addition to args that can take a list of webcommand urls as value [ 'greper.herokuapp.com/?foo', 'sorter.herokuapp.com/?args=-r']
Allow the use of where filename would be used. Webcommands before passing the arglists to the underlying unix command should check of an argument has the format of a url and in that case fetch the url in /tmp and replace the url with tmpname. after command execution delete that file.
Add 'cat' to the utility list
The text was updated successfully, but these errors were encountered:
Minor Improvements
Convert from sorter to generic command server
webcommandserver.herokuapp.com
localhost:8000/sed?
instead oflocalhost:8000/?args..
for easier testingServer-side piping
The text was updated successfully, but these errors were encountered: