dwiechert / scala-shell Goto Github PK
View Code? Open in Web Editor NEWBasic shell written in Scala.
License: Apache License 2.0
Basic shell written in Scala.
License: Apache License 2.0
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.
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.
Support the tree
command which will print out a tree structure of the current directory, current files, sub-directories, and sub-files.
Support the ls
command. This should print out all of the items in the current directory or an optional specified directory ls <directory>
.
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.
It would be nice to include output colors for different things:
Add a command that notifies to the user that their input is invalid.
Support the exit
command. This should exit the shell.
Support the pwd
command. This should print out the current working directory of the shell.
It would be nice to have a monospaced font in the shell.
Support the cd
command. This will allow the shell to change its current directory. Some optional parameters are:
cd <full path>
cd ..
cd <child>
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.