Coder Social home page Coder Social logo

shellbase's Introduction

Build Status codecov.io Join the chat at https://gitter.im/SumoLogic/shellbase

shellbase

Sumo Logic's Scala-based interactive shell framework

Install / Download

These are the components we provide:

  • shellbase-core contains everything you need to make a basic, working shell
  • shellbase-slack contains the necessary pieces to post your commands to Slack.
    <dependency>
      <groupId>com.sumologic.shellbase</groupId>
      <artifactId>shellbase-core</artifactId>
      <version>1.1.2</version>
    </dependency>

    <dependency>
      <groupId>com.sumologic.shellbase</groupId>
      <artifactId>shellbase-slack</artifactId>
      <version>1.1.2</version>
    </dependency>

Built-In Commands

  • help / ? - Displays a summary of available commands.
  • clear - Clears the text on the screen
  • exit / quit - Exits the current shell
  • sleep / zzz - Sleeps for the specified duration. Can use compact time: 5m means 5 minutes
  • echo - Writes output to the screen (STDOUT)
  • tee - Lets you fork stdout to a file
  • time - Time how long a command took
  • run_script / script - Execute the specified script. Will attempt to be smart about locating

Example Shell

We've put together a very simple example shell that can generate random numbers.

[Dev] Building/testing locally

  1. Locally compile/install skipping the PGP signatures:

    mvn clean install -Dgpg.skip=true
    
  2. Change your consumer pom.xml to depend on the SNAPSHOT version generated.

[Dev] How to release new version

  1. Make sure you have all credentials.
<server>
  <username>sumoapi</username>
  <password>****</password>
  <id>sonatype-nexus-staging</id>
</server>
  • Signing key:
  gpg --import ~/Desktop/api.private.key
  gpg-agent --daemon
  touch a
  gpg --use-agent --sign a

  1. mvn release:prepare
  2. mvn release:perform (alternative git checkout HEAD~1 && mvn deploy)
  3. Go to https://oss.sonatype.org/index.html#stagingRepositories, search for com.sumologic and release your repo.
  4. Push your commits as PR (git push origin master:new-branch)

shellbase's People

Contributors

cddude229 avatar jakozaur avatar gitter-badger 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.