Giter Site home page Giter Site logo

jsh's Introduction

JSH

JSH (Java SHell) is a shell designed as a replacement for BASH or other UNIX like shells. Works on Windows, Mac, and Linux, however for Windows and Mac it will populate in a directory within the users home directory location. On Linux, the system should be run as root, and will populate itself in the root directory. If not run as root, it will act the same as it would on Windows or Mac.


PLEASE NOTE JSH is still in early development!! In its current state its close to a quarter complete


Why JSH?

JSH is lightweight, fast, and easy to work with. It is fully extensible, with a Module framework, and a Command framework It is cross-platform

FAQS

Where does JSH populate?

  • JSH will create a directory "jsh" within /bin on linux that contains all commands
  • JSH will create a directory "modules" within / on linux that contains all modules
  • JSH will create a file "module.lst" that contains a list of all modules on the system
  • JSH will create a directory "JSH" in /var/log to log all errors to
  • JSH will create a directory "config" in / on linux that contains configuration files
    • (If / is inaccessible, a folder JSH will be created in the home directory containing all necessary files)

Will JSH replace my current shell?

  • While this is the intended outcome, JSH cannot yet replace a linux shell completely

Can Commands call Module methods?

  • Yes, commands can depend on modules
  • JSH loads commands and modules into the same scope allowing commands to refer to module methods and variables

Command Creation

To create a Command that can be used by JSH,

  • Extend the terra.shell.command.Command class, or the terra.shell.command.BasicCommand class
  • Place all runtime code within the start() method
  • Copy the compiled class file to the JSH command bin directory

Module Creation

To create a Module that can be used by JSH,

  • Extend the terra.shell.modules.Module class with class named module
  • Place all pre-runtime code within the onEnable() method
    • This code will be run when the module is loaded, before it is actually run
  • Place runtime code within the run() method
  • Copy compiled files into a sub-directory of JSH's modules directory
  • Append /module.lst with the directory name containing the module files

Documentation

https://einstein12345.github.io/docs/index.html

jsh's People

Contributors

einstein12345 avatar schirripad avatar

Watchers

 avatar  avatar

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.