Skip to content

Commit

Permalink
Merge 9931e9d into ceca8fa
Browse files Browse the repository at this point in the history
  • Loading branch information
Naomi Slater committed Apr 16, 2018
2 parents ceca8fa + 9931e9d commit a2bc66d
Show file tree
Hide file tree
Showing 17 changed files with 426 additions and 284 deletions.
2 changes: 1 addition & 1 deletion DEVELOP.rst
Expand Up @@ -5,7 +5,7 @@ Developer Guide
Setup
=====

This project uses buildout_ to set up the development environment.
This project uses `buildout`_ to set up the development environment.

To start things off, run::

Expand Down
67 changes: 40 additions & 27 deletions README.rst
@@ -1,50 +1,60 @@
=====
Crash
=====
=================
The CrateDB Shell
=================

.. image:: https://travis-ci.org/crate/crash.svg?branch=master
:target: https://travis-ci.org/crate/crash
:alt: Travis CI

.. image:: https://badge.fury.io/py/crash.png
.. image:: https://badge.fury.io/py/crash.svg
:target: http://badge.fury.io/py/crash
:alt: Version

.. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg
:target: https://crate.io/docs/reference/crash/
:alt: Documentation

.. image:: https://img.shields.io/pypi/pyversions/crash.svg
:target: https://pypi.python.org/pypi/crash/
:alt: Python Version

.. image:: https://img.shields.io/coveralls/crate/crash.svg
:target: https://coveralls.io/r/crate/crash?branch=master
.. image:: https://coveralls.io/repos/github/crate/crash/badge.svg?branch=master
:target: https://coveralls.io/github/crate/crash?branch=master
:alt: Coverage

|
Crash is an interactive CrateDB *command line interface* (CLI) SQL shell with autocompletion.

The CrashDB Shell (aka *Crash*) is an interactive `command-line interface`_
(CLI) tool for interacting with CrateDB.

Screenshot
==========

.. image:: crash.png
.. image:: docs/query.png
:alt: A screenshot of Crash

Prerequisites
=============

Recent versions of Crash require **Python 3** (>= 3.4) to run.
Recent versions of Crash require Python 3 (>= 3.4) to run.

Use Crash version 0.23.x if you are running Python 2.7 or 3.3.

Use Crash version ``0.23.x`` if you are running Python 2.7/3.3 or version
``0.16.x`` if you're running Python 2.6.
Use Crash version 0.16.x if you're running Python 2.6.

Installation
============

As a Python Package
-------------------
Under normal circumstances, you do not have to manually install Crash.

Crash is bundled with CrateDB so there is typically no need to install it
yourself.

If you are able to run the ``crate`` command, you should be able to run the
``crash`` command (either from the same ``bin`` directory, or on your `PATH`_).

The following instructions should only be followed if you specifically want to
install Crash separately from CrateDB.

Python Package
--------------

Crash is available as a pip_ package.

Expand All @@ -60,39 +70,40 @@ To update, run::

$ pip install -U crash

If you use Python 2.7 or 3.3 with a recent version of pip_, it will install
only version ``0.23.x`` by default, because newer versions of this package are
not compatible with Python 2.7/3.3 any more.
If you are not using Python version 3.4 or above, recent version of pip_ will
only install version 0.23.x. This is because newer versions of this package are
not compatible with Python 2.7 or 3.3 and below.

Standalone
----------

Crash is also available as a standalone executable that includes all the
necessary dependencies, and can be run as long as Python (>= 3.4) is available.
necessary dependencies, and can be run as long as Python (>= 3.4) is available
on your system.

First, download the executable::
First, download the executable file::

$ curl -o crash https://cdn.crate.io/downloads/releases/crash_standalone_latest

Then, make it executable::
Then, set the executable bit::

$ chmod +x crash

Now, run it::

$ ./crash

If you would like to run ``crash`` from any directory and without using leading
``./`` you will need to move it to somewhere on your ``$PATH``.
If you would like to run ``crash`` from any directory, and without the leading
``./``, the file has to be in a directory that is on your `PATH`_.

Legacy Versions
...............

For Python 2.7 and 3.3 please download version ``0.23.0`` from the CDN::
For Python 2.7 and 3.3 please download version 0.23.0 from the CDN::

$ curl -o crash https://cdn.crate.io/downloads/releases/crash_standalone_0.23.0

For Python 2.6 please download version ``0.16.2`` from the CDN::
For Python 2.6 please download version 0.16.2 from the CDN::

$ curl -o crash https://cdn.crate.io/downloads/releases/crash_standalone_0.16.2

Expand Down Expand Up @@ -121,10 +132,12 @@ Looking for more help?
- Chat with us on `Slack`_
- Get `paid support`_

.. _command-line interface: https://en.wikipedia.org/wiki/Command-line_interface
.. _contribution docs: CONTRIBUTING.rst
.. _Crate.io: http://crate.io/
.. _developer docs: DEVELOP.rst
.. _paid support: https://crate.io/pricing/
.. _PATH: https://en.wikipedia.org/wiki/PATH_(variable)
.. _pip: https://pypi.python.org/pypi/pip
.. _Slack: https://crate.io/docs/support/slackin/
.. _StackOverflow: https://stackoverflow.com/tags/crate
Expand Down
1 change: 1 addition & 0 deletions buildout.cfg
Expand Up @@ -23,6 +23,7 @@ eggs = crash
recipe = hexagonit.recipe.download
url = https://cdn.crate.io/downloads/releases/crate-${versions:crate_server}.tar.gz
strip-top-level-dir = true
ignore-existing = true

[test]
relative-paths=true
Expand Down
Binary file added docs/autocomplete.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
189 changes: 0 additions & 189 deletions docs/cli.txt

This file was deleted.

0 comments on commit a2bc66d

Please sign in to comment.