Git Product home page Git Product logo

scala-shell's People

Contributors

dwiechert avatar

Watchers

 avatar  avatar  avatar

scala-shell's Issues

cat

Support the cat command. This should print out the contents of the specified file cat <filename>.

>>

Support the redirect to file >> command. This will allow the user to send output to a specified file so it doesn't flow the shell.

Disallow Deletion

Currently, the whole text area can be deleted. To act like a real shell, the user should only be allowed to delete the current command and command line arguments.

Tree

Support the tree command which will print out a tree structure of the current directory, current files, sub-directories, and sub-files.

ls

Support the ls command. This should print out all of the items in the current directory or an optional specified directory ls <directory>.

GUI

Create a basic GUI that just has a text area for the user to type in. Also, package this as a jar so that when double-clicked, it opens the GUI.

Colors

It would be nice to include output colors for different things:

  • Files
  • Folders
  • Background
  • Font

Invalid Input.

Add a command that notifies to the user that their input is invalid.

exit

Support the exit command. This should exit the shell.

pwd

Support the pwd command. This should print out the current working directory of the shell.

cd

Support the cd command. This will allow the shell to change its current directory. Some optional parameters are:

  • Full path to directory - cd <full path>
  • Path to parent directory - cd ..
  • Path to child directory - cd <child>

Parse User Input

Parse the last line of the text area as the user input and print it back out to the text area. Enter should be used as indicating a "command" and all input on the same line before enter should be spit back out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.