Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Todo list/roadmap #3

Closed
17 of 19 tasks
ogt opened this issue Jun 26, 2013 · 0 comments
Closed
17 of 19 tasks

Todo list/roadmap #3

ogt opened this issue Jun 26, 2013 · 0 comments
Assignees

Comments

@ogt
Copy link
Owner

ogt commented Jun 26, 2013

Minor Improvements

  • Move the help text from bottom to top of the page
  • Make the < button to work (should be moving the output to the input)
  • Make the command text input a drop down that gets filled with the getCommands web service
  • Args should be passed as multi value parameter as opposed to spliting a single valued parameter (as supported by the webcommand module)
  • Make the server code use the http://github.com/ogt/webcommand module
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant