MCPcopy Index your code
hub / github.com/crashub/crash

github.com/crashub/crash @1.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.3.2 ↗ · + Follow
4,763 symbols 17,215 edges 579 files 579 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
   ______
 .~      ~. |`````````,       .'.                   ..'''' |         |
|           |'''|'''''      .''```.              .''       |_________|
|           |    `.       .'       `.         ..'          |         |
 `.______.' |      `.   .'           `. ....''             |         |

The Common Reusable SHell (CRaSH) is a shell designed for extending Java programs and the Java Virtual Machine.

  • Website : http://www.crashub.org
  • JIRA: http://jira.exoplatform.org/browse/CRASH
  • Documentation: http://www.crashub.org
  • Continuous Integration: https://vietj.ci.cloudbees.com/job/CRaSH/

How to build CRaSH

Obtaining CRaSH source code

CRaSH can be obtained by cloning the Git repository git@github.com:crashub/crash.git

git clone git@github.com:crashub/crash.git

Building CRaSH

CRaSH is built with Maven.

mvn package

The build produces several archives ready to use:

  • crsh.shell-${version}-standalone.jar : a minimalistic standalone jar (to run with java -jar crsh.shell-${version}-standalone.jar)
  • packaging/target/crsh-${version}-spring.war : the Spring war
  • packaging/target/crsh-${version}.war : the web app war

It also produce the distribution:

  • distrib/target/crash-${version}-docs.tar.gz : the documentation
  • distrib/target/crash-${version}.tar.gz : the standalone distribution
  • distrib/target/crash-${version}-war.tar.gz : the web app distribution
  • distrib/target/crash-${version}-spring.tar.gz : the Spring distribution
  • distrib/target/crash-${version}-mule-app.tar.gz : the Mule distribution

Extension points exported contracts — how you extend this code

Language (Interface)
Integration of a language. @author Julien Viet [7 implementers]
shell/src/main/java/org/crsh/lang/spi/Language.java
Completer (Interface)
(no doc) [49 implementers]
cli/src/main/java/org/crsh/cli/spi/Completer.java
Term (Interface)
(no doc) [6 implementers]
connectors/telnet/src/main/java/org/crsh/telnet/term/Term.java
ConsoleDriver (Interface)
The contract between the console and the underlying stream. [10 implementers]
shell/src/main/java/org/crsh/console/ConsoleDriver.java
Instance (Interface)
@author Julien Viet [3 implementers]
cli/src/main/java/org/crsh/cli/impl/lang/Instance.java
TermIOHandler (Interface)
(no doc) [13 implementers]
connectors/telnet/src/main/java/org/crsh/telnet/term/spi/TermIOHandler.java
InteractionContext (Interface)
The interaction context extends the screen context and provides interaction with the client. [15 implementers]
shell/src/main/java/org/crsh/shell/InteractionContext.java
CommandProvider (Interface)
@author Julien Viet [2 implementers]
cli/src/main/java/org/crsh/cli/impl/bootstrap/CommandProvider.java

Core symbols most depended-on inside this repo

get
called by 634
cli/src/main/java/org/crsh/cli/impl/lang/Instance.java
append
called by 602
shell/src/main/java/org/crsh/text/Screenable.java
add
called by 313
shell/src/main/java/org/crsh/text/ui/RowElement.java
replace
called by 272
connectors/telnet/src/main/java/org/crsh/telnet/term/console/TermIOBuffer.java
size
called by 225
shell/src/main/java/org/crsh/util/SimpleMap.java
push
called by 189
connectors/telnet/src/main/java/org/crsh/telnet/term/console/TermIOBuffer.java
length
called by 183
shell/src/main/java/org/crsh/util/BlankSequence.java
getName
called by 178
shell/src/main/java/org/crsh/lang/spi/Language.java

Shape

Method 3,746
Class 724
Function 237
Interface 37
Enum 19

Languages

Java95%
TypeScript5%

Modules by API surface

shell/src/test/java/test/command/Commands.java85 symbols
cli/src/test/java/org/crsh/cli/impl/matcher/MatcherTestCase.java71 symbols
connectors/web/src/main/webapp/js/jquery.terminal-src.js56 symbols
connectors/web/src/main/webapp/js/jquery.terminal-0.7.12.js56 symbols
cli/src/main/java/org/crsh/cli/impl/parser/Event.java46 symbols
shell/src/test/java/org/crsh/shell/impl/command/PipeLineFailureTestCase.java42 symbols
connectors/web/src/main/webapp/js/jquery-1.7.1.min.js42 symbols
connectors/web/src/main/webapp/js/jquery.terminal-min.js41 symbols
connectors/web/src/main/webapp/js/jquery.terminal-0.7.12.min.js41 symbols
connectors/telnet/src/test/java/org/crsh/telnet/term/spi/TestTermIO.java41 symbols
cli/src/test/java/org/crsh/cli/impl/tokenizer/TokenizerTestCase.java38 symbols
shell/src/test/java/org/crsh/console/ConsoleTestCase.java37 symbols

For agents

$ claude mcp add crash \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact