The shelly Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The shelly Reference Manual

This is the shelly Reference Manual, version 0.8.6, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:50:44 2022 GMT+0.

Table of Contents


1 Introduction

Shelly - Make Common Lisp shell-friendly.

Announcement: Release of v0.7.5

Perl5 isn't required to use Shelly from v0.7.0 because I rewrote it in shell script.

You can install the latest version by this command:

$ curl -L http://shlyfile.org/shly | /bin/sh

If you already have an older version of it, you can upgrade it by this command:

$ shly install --version latest

Usage

Usage: shly [option,..] <command> [arg1,arg2..]

Examples:

$ shly asdf:test-system :clack
$ shly ql:update-all-dists --prompt nil
$ shly -Lclack clackup /path/to/project/app.lisp
$ shly -Lclack clack.app.directory:start-server
$ shly -Ldrakma http-request http://www.hatena.com/
$ shly -Lcl-project make-project /path/to/myapp/ --description "My sample app." --author "Eitaro Fukamachi"

Description

Shelly enables you to execute Common Lisp functions like a shell command. And it also can be used as a Make-like build-tool.

Shelly has the following features:

Warning: This software is still ALPHA quality. The APIs will be likely to change.

Why use it?

In Common Lisp world, most libraries and applications are designed to run on REPL. It is convenient for interactive development, but it would be an obstacle in some cases.

For example, Common Lisp isn't good for writing a small script. No common way to write it in a portable way. Parsing command-line arguments is really annoying. And, the startup time would be very slow, especially when it uses some libraries.

Shelly solves these problems by providing a shell-friendly interface of Common Lisp. If your application need to run with Cron, Supervisord or other CUI applications, this may help you.

1. Implementation independent

Shelly should work fine with one of SBCL, Clozure CL, Allegro CL, ABCL, GNU CLISP and ECL.

2. Function as a shell command

Shelly treats general functions as its sub-commands, so you don't even need to write a script in most cases.

(in-package :myapp)

(defun do-something (&key verbose)
  ;; Do something.
  )

$ shly myapp:do-something --verbose t

Command-line options and arguments will be delivered to a function.

3. Fast startup

Shelly reduces the startup time by storing a Lisp core image. In a simple case, the execution is about 33 times faster than CIM's cl command and even 25 times faster than SBCL (with Quicklisp) at the maximum.

# Uses SBCL v1.2.1, Shelly v0.7.0
$ time shly + 1 2
3
shly + 1 2  0.02s user 0.03s system 102% cpu 0.047 total

# CIM v1.0.0
$ time cl --eval '(princ (+ 1 2))'
3
cl --eval '(princ (+ 1 2))'  0.67s user 0.11s system 96% cpu 0.805 total

# SBCL with Quicklisp
$ time sbcl --noinform --eval '(princ (+ 1 2))' --eval '(quit)'
3
sbcl --noinform --eval '(princ (+ 1 2))' --eval '(quit)'  0.51s user 0.09s system 99% cpu 0.606 total

# SBCL without Quicklisp
$ time sbcl --noinform --no-userinit --eval '(princ (+ 1 2))' --eval '(quit)'
3
sbcl --noinform --no-userinit --eval '(princ (+ 1 2))' --eval '(quit)'  0.00s user 0.01s system 89% cpu 0.012 total

How does it work

Shelly provides a shell script "shly". It takes some options, a command, and arguments for the command.

Usage: shly [option,..] <command> [arg1,arg2..]

In this example, ql:system-apropos would be the command and web would be an argument.

;; Same as (ql:system-apropos "web")
$ shly ql:system-apropos web
#<SYSTEM bknr.modules / bknr-web-20140616-git / quicklisp 2014-06-16>
#<SYSTEM bknr.web / bknr-web-20140616-git / quicklisp 2014-06-16>
#<SYSTEM cl-web-crawler / cl-web-crawler-20130128-svn / quicklisp 2014-06-16>
#<SYSTEM cl-webdav / cl-webdav-0.2.1 / quicklisp 2014-06-16>
#<SYSTEM crane-web / crane-20140616-git / quicklisp 2014-06-16>
#<SYSTEM hh-web / hh-web-20140616-git / quicklisp 2014-06-16>
...

If an argument starts with ":", it would be converted into a keyword.

;; Same as (asdf:system-source-file :hunchentoot).
$ shly asdf:system-source-file :hunchentoot
#P"/Users/nitro_idiot/quicklisp/dists/quicklisp/software/hunchentoot-1.2.21/hunchentoot.asd"

If an argument starts with "--", it also would be a keyword. This is just like common shell commands.

;; Same as (ql:update-all-dists :prompt nil)
$ shly ql:update-all-dists --prompt nil

If the command is imported to COMMON-LISP-USER package, you can omit the package prefix.

$ shly list 1 2 3
(1 2 3)

Or, if the package name is the same as the system name that is loaded by -L option, you can also omit it.

$ shly -Ldrakma http-request http://www.hatena.com/
$ shly -Lcl-project make-project /path/to/myapp/ --description "My sample app." --author "Eitaro Fukamachi"

As a replacement of Makefile

Shelly loads a local file which is named shlyfile.lisp if it exists. You can define project specific commands by writing functions in it. This is just like a "Makefile" in Common Lisp.

;; shlyfile.lisp
(defun test ()
  (asdf:test-system :your-app))

(defun build ()
  ;; Somthing to build your app.
  )

Then, shly test and shly build would be available only in the directory.

$ shly test
$ shly build

Shelly also loads ~/.shelly/shlyfile.lisp every time if it exists. If you have some commands you'd like to use everywhere, put them into that file.

Requirements

If you've installed CIM, Shelly will use its setting.

Installation

Installing the latest version

Currently, the install script always installs the latest version because the stable version requires Perl5 and I suppose you may not expect it.

$ curl -L http://shlyfile.org/shly | /bin/sh

You can also install from the source code.

$ git clone https://github.com/fukamachi/shelly.git
$ cd shelly
$ SHELLY_PATH=. bin/shly install

As "shelly" directory will be copied to ~/.shelly, you don't need the cloned repository after installation.

Installing to other than ~/.shelly

If you want to install Shelly to the different location, set SHELLY_HOME to the directory path.

$ curl -L http://shlyfile.org/shly | SHELLY_HOME=~/.shly /bin/sh

System-Wide installation

If --global t is specified to install command, it would be installed under /usr/local.

$ curl -L http://shlyfile.org/shly | /bin/sh -s install --global t

Configuration

If you use bash, zsh, csh or tcsh, the initialization code will be appended into your .*rc file automatically.

Otherwise, set SHELLY_HOME and add ~/.shelly/bin to PATH manually.

SHELLY_HOME="$HOME/.shelly"
[ -s "$SHELLY_HOME/lib/shelly/init.sh" ] && . "$SHELLY_HOME/lib/shelly/init.sh"

Upgrading

shly upgrade

Uninstalling

$ shly uninstall
$ rm -rf ~/.shelly

Built-in Commands

help [&optional command]

Show the usage of the specified command.

$ shly help ql:quickload
Usage: ql:quickload (systems &key verbose prompt explain
                     (verbose *quickload-verbose*) (prompt *quickload-prompt*)
                     &allow-other-keys)
    Load SYSTEMS the quicklisp way. SYSTEMS is a designator for a list
       of things to be loaded.

If command is not specified, it shows all available commands. This is the same as shly --help.

$ shly help

install [&key version global directory]

Install Shelly into your environment under "~/.shelly". You can install a specific version by using "--version".

$ shly install --version v0.6.1

If --directory is specified, it would be installed to the directory.

$ shly install --directory ~/.local

If --global is specified with non-NIL value, it would be installed to /usr/local/ (Same as --directory /usr/local).

$ shly install --global t

uninstall [&key directory]

Uninstall Shelly.

$ shly uninstall

available-versions

Show all the possible Shelly versions.

$ shly available-versions

dump-core

Dump Lisp core image file for faster startup.

$ shly dump-core

rm-core

Remove saved core image file which created by dump-core.

$ shly rm-core

local-dump-core [&rest systems] (Experimental)

Dump Lisp core image file to the current directory. This command takes system names to be included in the core.

$ shly local-dump-core :myapp

install-command [package-or-function-name]

Make an executable file under SHELLY_HOME/bin/.

# Making a function executable.
$ shly -Lclack install-command clack:clackup
# Same as (clack:clackup #P"/path/to/app.lisp")
$ clackup /path/to/app.lisp

# Making a package executable.
$ shly -Lclack install-command clack.app.directory
# Same as (clack.app.directory:start-server :port 50032)
$ clack.app.directory start-server --port 50032

History (roughly)

v0.8.6 (Oct 27, 2014)

v0.8.5 (Oct 3, 2014)

v0.8.1 (Aug 4, 2014)

v0.8.0 (Aug 2, 2014)

v0.7.0 (July 15, 2014)

v0.6.0 (Mar 31, 2014)

v0.5.8 (Nov 12, 2013)

v0.5.0 (Aug 29, 2013)

v0.4.0 (Aug 26, 2013)

Note: Conversion rules

Number

$ shly type-of 24
(INTEGER 0 4611686018427387903)
$ shly type-of 3.141592653589793d0
DOUBLE-FLOAT

Cons

$ shly type-of '(list 1 2 3)'
CONS

Boolean

If it is "t" or "nil", it would be T or NIL.

$ shly type-of t
BOOLEAN
$ shly type-of nil
NULL

Keyword

If it starts with ":" or "--", it would be a keyword.

$ shly type-of :web
KEYWORD
$ shly type-of --verbose

Pathname

If the same name file exists, it would be a pathname. Otherwise, it would be just a string.

$ shly type-of test.lisp
(SIMPLE-ARRAY CHARACTER (9))
$ touch test.lisp
$ shly type-of test.lisp
PATHNAME

Symbol

If the same name symbol exists, it would be a symbol.

$ shly pi
DOUBLE-FLOAT
$ shly asdf:\*central-registry\*
CONS

String

Otherwise, it would be treated as a string.

$ shly common-lisp-is-great
(SIMPLE-ARRAY CHARACTER (20))

Copyright

Copyright (c) 2012-2014 Eitaro Fukamachi and contributors.

License

Licensed under the BSD (2-Clause) License. See LICENSE.


2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 shelly

Run Common Lisp from shell easily.

Author

Eitaro Fukamachi

License

BSD 2-Clause

Long Description

# Shelly - Make Common Lisp shell-friendly.

## Announcement: Release of v0.7.5

Perl5 isn’t required to use Shelly from v0.7.0 because I rewrote it in shell script.

You can install the latest version by this command:

$ curl -L http://shlyfile.org/shly | /bin/sh

If you already have an older version of it, you can upgrade it by this command:

$ shly install –version latest

## Usage

Usage: shly [option,..] <command> [arg1,arg2..]

Examples:

$ shly asdf:test-system :clack
$ shly ql:update-all-dists –prompt nil
$ shly -Lclack clackup /path/to/project/app.lisp
$ shly -Lclack clack.app.directory:start-server
$ shly -Ldrakma http-request http://www.hatena.com/
$ shly -Lcl-project make-project /path/to/myapp/ –description "My sample app." –author "Eitaro Fukamachi"

## Description

Shelly enables you to execute Common Lisp functions like a shell command. And it also can be used as a Make-like build-tool.

Shelly has the following features:

* Provides shell command-like interface for Common Lisp functions
* Dumps a Lisp core for fast execution.
* Allows to define project specific commands. (shlyfile)
* Implementation independent.

<strong><span style="color:red">Warning</span>: This software is still ALPHA quality. The APIs will be likely to change.</strong>

## Why use it?

In Common Lisp world, most libraries and applications are designed to run on REPL. It is convenient for interactive development, but it would be an obstacle in some cases.

For example, Common Lisp isn’t good for writing a small script. No common way to write it in a portable way. Parsing command-line arguments is really annoying. And, the startup time would be very slow, especially when it uses some libraries.

Shelly solves these problems by providing a shell-friendly interface of Common Lisp. If your application need to run with Cron, Supervisord or other CUI applications, this may help you.

### 1. Implementation independent

Shelly should work fine with one of SBCL, Clozure CL, Allegro CL, ABCL, GNU CLISP and ECL.

### 2. Function as a shell command

Shelly treats general functions as its sub-commands, so you don’t even need to write a script in most cases.

(in-package :myapp)

(defun do-something (&key verbose)
;; Do something.
)

$ shly myapp:do-something –verbose t

Command-line options and arguments will be delivered to a function.

### 3. Fast startup

Shelly reduces the startup time by storing a Lisp core image. In a simple case, the execution is about 33 times faster than CIM’s ‘cl‘ command and even 25 times faster than SBCL (with Quicklisp) at the maximum.

# Uses SBCL v1.2.1, Shelly v0.7.0
$ time shly + 1 2
3
shly + 1 2 0.02s user 0.03s system 102% cpu 0.047 total

# CIM v1.0.0
$ time cl –eval ’(princ (+ 1 2))’
3
cl –eval ’(princ (+ 1 2))’ 0.67s user 0.11s system 96% cpu 0.805 total

# SBCL with Quicklisp
$ time sbcl –noinform –eval ’(princ (+ 1 2))’ –eval ’(quit)’
3
sbcl –noinform –eval ’(princ (+ 1 2))’ –eval ’(quit)’ 0.51s user 0.09s system 99% cpu 0.606 total

# SBCL without Quicklisp
$ time sbcl –noinform –no-userinit –eval ’(princ (+ 1 2))’ –eval ’(quit)’
3
sbcl –noinform –no-userinit –eval ’(princ (+ 1 2))’ –eval ’(quit)’ 0.00s user 0.01s system 89% cpu 0.012 total

## How does it work

Shelly provides a shell script "shly". It takes some options, a command, and arguments for the command.

Usage: shly [option,..] <command> [arg1,arg2..]

In this example, ‘ql:system-apropos‘ would be the command and ‘web‘ would be an argument.

;; Same as (ql:system-apropos "web")
$ shly ql:system-apropos web
#<SYSTEM bknr.modules / bknr-web-20140616-git / quicklisp 2014-06-16>
#<SYSTEM bknr.web / bknr-web-20140616-git / quicklisp 2014-06-16>
#<SYSTEM cl-web-crawler / cl-web-crawler-20130128-svn / quicklisp 2014-06-16>
#<SYSTEM cl-webdav / cl-webdav-0.2.1 / quicklisp 2014-06-16>
#<SYSTEM crane-web / crane-20140616-git / quicklisp 2014-06-16>
#<SYSTEM hh-web / hh-web-20140616-git / quicklisp 2014-06-16>
...

If an argument starts with ":", it would be converted into a keyword.

;; Same as (asdf:system-source-file :hunchentoot).
$ shly asdf:system-source-file :hunchentoot
#P"/Users/nitro_idiot/quicklisp/dists/quicklisp/software/hunchentoot-1.2.21/hunchentoot.asd"

If an argument starts with "–", it also would be a keyword. This is just like common shell commands.

;; Same as (ql:update-all-dists :prompt nil)
$ shly ql:update-all-dists –prompt nil

If the command is imported to ‘COMMON-LISP-USER‘ package, you can omit the package prefix.

$ shly list 1 2 3
(1 2 3)

Or, if the package name is the same as the system name that is loaded by ‘-L‘ option, you can also omit it.

$ shly -Ldrakma http-request http://www.hatena.com/
$ shly -Lcl-project make-project /path/to/myapp/ –description "My sample app." –author "Eitaro Fukamachi"

## As a replacement of Makefile

Shelly loads a local file which is named ‘shlyfile.lisp‘ if it exists. You can define project specific commands by writing functions in it. This is just like a "Makefile" in Common Lisp.

“‘common-lisp
;; shlyfile.lisp
(defun test ()
(asdf:test-system :your-app))

(defun build ()
;; Somthing to build your app.
)
“‘

Then, ‘shly test‘ and ‘shly build‘ would be available only in the directory.

“‘
$ shly test
$ shly build
“‘

Shelly also loads ‘~/.shelly/shlyfile.lisp‘ every time if it exists. If you have some commands you’d like to use everywhere, put them into that file.

## Requirements

* Common Lisp implementation
* [Quicklisp](http://www.quicklisp.org/beta/)

If you’ve installed [CIM](https://github.com/KeenS/CIM), Shelly will use its setting.

## Installation

### Installing the latest version

Currently, the install script always installs the latest version because the stable version requires Perl5 and I suppose you may not expect it.

$ curl -L http://shlyfile.org/shly | /bin/sh

You can also install from the source code.

“‘
$ git clone https://github.com/fukamachi/shelly.git
$ cd shelly
$ SHELLY_PATH=. bin/shly install
“‘

As "shelly" directory will be copied to ~/.shelly, you don’t need the cloned repository after installation.

### Installing to other than ~/.shelly

If you want to install Shelly to the different location, set SHELLY_HOME to the directory path.

$ curl -L http://shlyfile.org/shly | SHELLY_HOME=~/.shly /bin/sh

### System-Wide installation

If ‘–global t‘ is specified to ‘install‘ command, it would be installed under ‘/usr/local‘.

$ curl -L http://shlyfile.org/shly | /bin/sh -s install –global t

## Configuration

If you use bash, zsh, csh or tcsh, the initialization code will be appended into your .*rc file automatically.

Otherwise, set SHELLY_HOME and add ~/.shelly/bin to PATH manually.

SHELLY_HOME="$HOME/.shelly"
[ -s "$SHELLY_HOME/lib/shelly/init.sh" ] && . "$SHELLY_HOME/lib/shelly/init.sh"

## Upgrading

“‘
shly upgrade
“‘

## Uninstalling

“‘
$ shly uninstall
$ rm -rf ~/.shelly
“‘

## Built-in Commands

### help [&optional command]

Show the usage of the specified ‘command‘.

$ shly help ql:quickload
Usage: ql:quickload (systems &key verbose prompt explain
(verbose *quickload-verbose*) (prompt *quickload-prompt*)
&allow-other-keys)
Load SYSTEMS the quicklisp way. SYSTEMS is a designator for a list
of things to be loaded.

If ‘command‘ is not specified, it shows all available commands. This is the same as ‘shly –help‘.

$ shly help

### install [&key version global directory]

Install Shelly into your environment under "~/.shelly". You can install a specific version by using "–version".

$ shly install –version v0.6.1

If ‘–directory‘ is specified, it would be installed to the directory.

$ shly install –directory ~/.local

If ‘–global‘ is specified with non-NIL value, it would be installed to ‘/usr/local/‘ (Same as ‘–directory /usr/local‘).

$ shly install –global t

### uninstall [&key directory]

Uninstall Shelly.

$ shly uninstall

### available-versions

Show all the possible Shelly versions.

$ shly available-versions

### dump-core

Dump Lisp core image file for faster startup.

$ shly dump-core

### rm-core

Remove saved core image file which created by ‘dump-core‘.

$ shly rm-core

### local-dump-core [&rest systems] \(Experimental)

Dump Lisp core image file to the current directory. This command takes system names to be included in the core.

$ shly local-dump-core :myapp

### install-command [package-or-function-name]

Make an executable file under SHELLY_HOME/bin/.

# Making a function executable.
$ shly -Lclack install-command clack:clackup
# Same as (clack:clackup #P"/path/to/app.lisp")
$ clackup /path/to/app.lisp

# Making a package executable.
$ shly -Lclack install-command clack.app.directory
# Same as (clack.app.directory:start-server :port 50032)
$ clack.app.directory start-server –port 50032

## History (roughly)

### v0.8.6 (Oct 27, 2014)

* Support Cygwin even for CCL. Thanks to [@lambdasakura](https://github.com/lambdasakura).

### v0.8.5 (Oct 3, 2014)

* Support Cygwin (only with SBCL). Thanks to [@lambdasakura](https://github.com/lambdasakura).

### v0.8.1 (Aug 4, 2014)

* Allow to specify where to install (‘–directory‘ option).
* Add ‘–global‘ to ‘install‘.
* Add ‘uninstall‘ command.

### v0.8.0 (Aug 2, 2014)

* Add ‘install-command‘ command (for SBCL, CCL and GNU CLISP).

### v0.7.0 (July 15, 2014)

* Use CIM for CL implementation management if it is installed.
* Rewrite "bin/shly" in Shell script.
* Remove the dependency on SWANK.
* Allow to specify where to install with ‘SHELLY_HOME‘.
* Add ‘upgrade‘ command.

### v0.6.0 (Mar 31, 2014)

* Add ‘local-dump-core‘ (experimental).
* Allow multiple ‘-L‘ options.
* Add a new option ‘-I‘ to add a directory path to ‘asdf:*central-registry*‘.

### v0.5.8 (Nov 12, 2013)

* Muffle outputs of ‘ql:quickload‘ when ‘–verbose‘ isn’t specified.

### v0.5.0 (Aug 29, 2013)

* Allow to install the specific version of Shelly.
* Show commands even in "shlyfile"s.

### v0.4.0 (Aug 26, 2013)

* Add "shlyfile" feature.

## Note: Conversion rules

### Number

$ shly type-of 24
(INTEGER 0 4611686018427387903)
$ shly type-of 3.141592653589793d0
DOUBLE-FLOAT

### Cons

$ shly type-of ’(list 1 2 3)’
CONS

### Boolean

If it is "t" or "nil", it would be ‘T‘ or ‘NIL‘.

$ shly type-of t
BOOLEAN
$ shly type-of nil
NULL

### Keyword

If it starts with ":" or "–", it would be a keyword.

$ shly type-of :web
KEYWORD
$ shly type-of –verbose

### Pathname

If the same name file exists, it would be a pathname. Otherwise, it would be just a string.

$ shly type-of test.lisp
(SIMPLE-ARRAY CHARACTER (9))
$ touch test.lisp
$ shly type-of test.lisp
PATHNAME

### Symbol

If the same name symbol exists, it would be a symbol.

$ shly pi
DOUBLE-FLOAT
$ shly asdf:\*central-registry\*
CONS

### String

Otherwise, it would be treated as a string.

$ shly common-lisp-is-great
(SIMPLE-ARRAY CHARACTER (20))

## Copyright

Copyright (c) 2012-2014 Eitaro Fukamachi and [contributors](https://github.com/fukamachi/shelly/graphs/contributors).
## License

Licensed under the BSD (2-Clause) License. See LICENSE.

Version

0.8.6

Dependencies
  • split-sequence (system).
  • cl-fad (system).
  • bordeaux-threads (system).
  • local-time (system).
  • trivial-signal (system).
  • babel (system).
  • uiop (system).
Source

shelly.asd.

Child Component

src (module).


3 Modules

Modules are listed depth-first from the system components tree.


Previous: , Up: Modules   [Contents][Index]

3.1 shelly/src

Source

shelly.asd.

Parent Component

shelly (system).

Child Components

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

4.1.1 shelly/shelly.asd

Source

shelly.asd.

Parent Component

shelly (system).

ASDF Systems

shelly.

Packages

shelly-asd.


4.1.2 shelly/src/shelly.lisp

Dependencies
Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.

Public Interface

4.1.3 shelly/src/core.lisp

Dependencies
Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.core.

Public Interface
Internals

4.1.4 shelly/src/install.lisp

Dependencies
Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.install.

Public Interface
Internals

4.1.5 shelly/src/versions.lisp

Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.versions.

Public Interface
Internals

4.1.6 shelly/src/util.lisp

Dependencies
Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.util.

Public Interface
Internals

load-shlyfile (function).


4.1.7 shelly/src/impl.lisp

Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.impl.

Public Interface

Previous: , Up: Lisp   [Contents][Index]

4.1.8 shelly/src/error.lisp

Source

shelly.asd.

Parent Component

src (module).

Packages

shelly.error.

Public Interface

5 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

5.1 shelly-asd

Source

shelly.asd.

Use List
  • asdf/interface.
  • common-lisp.

Next: , Previous: , Up: Packages   [Contents][Index]

5.2 shelly.impl

Source

impl.lisp.

Use List

common-lisp.

Public Interface

Next: , Previous: , Up: Packages   [Contents][Index]

5.3 shelly.error

Source

error.lisp.

Use List

common-lisp.

Public Interface

Next: , Previous: , Up: Packages   [Contents][Index]

5.4 shelly.versions

Source

versions.lisp.

Use List
  • common-lisp.
  • split-sequence.
Public Interface
Internals

Next: , Previous: , Up: Packages   [Contents][Index]

5.5 shelly.core

Source

core.lisp.

Use List

common-lisp.

Public Interface
Internals

Next: , Previous: , Up: Packages   [Contents][Index]

5.6 shelly

Source

shelly.lisp.

Use List
  • common-lisp.
  • split-sequence.
Public Interface

Next: , Previous: , Up: Packages   [Contents][Index]

5.7 shelly.util

Source

util.lisp.

Use List
  • common-lisp.
  • split-sequence.
Public Interface
Internals

load-shlyfile (function).


Previous: , Up: Packages   [Contents][Index]

5.8 shelly.install

Source

install.lisp.

Use List
  • common-lisp.
  • split-sequence.
Public Interface
Internals

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

6.1 Public Interface


Next: , Previous: , Up: Public Interface   [Contents][Index]

6.1.1 Special variables

Special Variable: *argv*
Package

shelly.core.

Source

core.lisp.

Special Variable: *current-lisp-name*
Package

shelly.impl.

Source

impl.lisp.

Special Variable: *current-lisp-path*
Package

shelly.impl.

Source

impl.lisp.

Special Variable: *eval-option*
Package

shelly.impl.

Source

impl.lisp.


6.1.2 Macros

Macro: install-command (package-or-function-name)

Make an executable file under SHELLY_HOME/bin/.

Example:
$ shly -Lclack install-command clack:clackup
$ shly -Lclack install-command clack.app.directory

$ clackup /path/to/app.lisp
$ clack.app.directory start-server –port 50032

Package

shelly.install.

Source

install.lisp.

Macro: with-retrying-when-system-not-found (&body body)
Package

shelly.util.

Source

util.lisp.


Next: , Previous: , Up: Public Interface   [Contents][Index]

6.1.3 Ordinary functions

Function: add-load-path (directories)
Package

shelly.util.

Source

util.lisp.

Function: arglist (fname)
Package

shelly.util.

Source

util.lisp.

Function: available-versions ()

Show all the possible Shelly versions.

Package

shelly.

Source

shelly.lisp.

Function: check-version (version)
Package

shelly.util.

Source

util.lisp.

Function: command-line-args ()
Package

shelly.impl.

Source

impl.lisp.

Function: condition-undefined-function-name (condition)
Package

shelly.impl.

Source

impl.lisp.

Function: copy-directory (from to &key overwrite)
Package

shelly.util.

Source

util.lisp.

Function: download-version (version &optional destination)
Package

shelly.versions.

Source

versions.lisp.

Function: dump-core (&key quit-lisp load-systems output)

Dump Lisp core image file for faster startup.

Package

shelly.install.

Source

install.lisp.

Function: find-version (version)
Package

shelly.versions.

Source

versions.lisp.

Function: find-version-name (version)
Package

shelly.versions.

Source

versions.lisp.

Function: help (&optional command)

Show a list of Built-In Commands.
If ‘command’ is specified, its usage will be displayed.

Package

shelly.

Source

shelly.lisp.

Function: install (&key version global directory)

Install Shelly into your environment under "~/.shelly". You can install a specific version by using "–version".

Package

shelly.install.

Source

install.lisp.

Function: interpret (expr &key verbose)
Package

shelly.core.

Source

core.lisp.

Function: load-global-shlyfile ()
Package

shelly.util.

Source

util.lisp.

Function: load-local-shlyfile (&optional shlyfile)
Package

shelly.util.

Source

util.lisp.

Function: load-systems (systems &key verbose)
Package

shelly.util.

Source

util.lisp.

Function: local-command-symbols (&optional package)
Package

shelly.util.

Source

util.lisp.

Function: local-dump-core (&rest systems)

(Experimental)
Dump Lisp core image file to the current directory. This command takes system names to be included in the core.

Package

shelly.install.

Source

install.lisp.

Function: print-package-commands (package &optional stream)
Package

shelly.util.

Source

util.lisp.

Function: release-versions ()
Package

shelly.versions.

Source

versions.lisp.

Function: rm-core ()

Remove saved core image file which created by ‘dump-core’.

Package

shelly.install.

Source

install.lisp.

Function: run-repl (&key verbose)

Start Read-Eval-Print Loop for interactive execution.

Package

shelly.core.

Source

core.lisp.

Function: save-app (filepath toplevel)
Package

shelly.impl.

Source

impl.lisp.

Function: save-core-image (filepath)
Package

shelly.impl.

Source

impl.lisp.

Function: shadowing-use-package (packages-to-use &optional package)
Package

shelly.util.

Source

util.lisp.

Function: shelly-home ()
Package

shelly.util.

Source

util.lisp.

Function: terminate (&optional status format-string &rest format-arguments)
Package

shelly.util.

Source

util.lisp.

Function: uninstall (&key directory)

Uninstall Shelly.

Package

shelly.install.

Source

install.lisp.

Function: upgrade ()

Upgrade Shelly to the latest version.

Package

shelly.install.

Source

install.lisp.

Function: version< (version1 version2)
Package

shelly.versions.

Source

versions.lisp.

Function: version<= (version1 version2)
Package

shelly.versions.

Source

versions.lisp.


6.1.4 Conditions

Condition: shelly-command-not-found-error
Package

shelly.error.

Source

error.lisp.

Direct superclasses

shelly-error.

Direct slots
Slot: command
Initargs

:command

Condition: shelly-error
Package

shelly.error.

Source

error.lisp.

Direct superclasses

simple-error.

Direct subclasses
Condition: shelly-read-error
Package

shelly.error.

Source

error.lisp.

Direct superclasses

shelly-error.

Direct slots
Slot: expression
Initargs

:expression


6.2 Internals


Next: , Previous: , Up: Internals   [Contents][Index]

6.2.1 Macros

Macro: i (symbol &optional args)
Package

shelly.versions.

Source

versions.lisp.


Previous: , Up: Internals   [Contents][Index]

6.2.2 Ordinary functions

Function: canonicalize-arg (arg0)
Package

shelly.core.

Source

core.lisp.

Function: configure-shell (install-dir)
Package

shelly.install.

Source

install.lisp.

Function: csh-style-init (install-dir)
Package

shelly.install.

Source

install.lisp.

Function: dumped-core-path ()
Package

shelly.install.

Source

install.lisp.

Function: extract-tarball (tarball-stream &optional destination)
Package

shelly.versions.

Source

versions.lisp.

Function: install-from-path (shelly-system-path &optional install-dir)
Package

shelly.install.

Source

install.lisp.

Function: install-function-command (package-name function-name)
Package

shelly.install.

Source

install.lisp.

Function: install-package-command (package-name)
Package

shelly.install.

Source

install.lisp.

Function: load-shlyfile (shlyfile)
Package

shelly.util.

Source

util.lisp.

Function: print (result)
Package

shelly.core.

Source

core.lisp.

Function: prompt ()
Package

shelly.core.

Source

core.lisp.

Function: qlrequire (packages)
Package

shelly.versions.

Source

versions.lisp.

Function: read (expr)
Package

shelly.core.

Source

core.lisp.

Function: retrieve-releases ()
Package

shelly.versions.

Source

versions.lisp.

Function: sh-style-init (install-dir)
Package

shelly.install.

Source

install.lisp.

Function: uninstall-with-path (install-dir)
Package

shelly.install.

Source

install.lisp.

Function: version-tarball-url (version)
Package

shelly.versions.

Source

versions.lisp.


Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts


Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   A   C   D   E   F   H   I   L   M   P   Q   R   S   T   U   V   W  
Index Entry  Section

A
add-load-path: Public ordinary functions
arglist: Public ordinary functions
available-versions: Public ordinary functions

C
canonicalize-arg: Private ordinary functions
check-version: Public ordinary functions
command-line-args: Public ordinary functions
condition-undefined-function-name: Public ordinary functions
configure-shell: Private ordinary functions
copy-directory: Public ordinary functions
csh-style-init: Private ordinary functions

D
download-version: Public ordinary functions
dump-core: Public ordinary functions
dumped-core-path: Private ordinary functions

E
extract-tarball: Private ordinary functions

F
find-version: Public ordinary functions
find-version-name: Public ordinary functions
Function, add-load-path: Public ordinary functions
Function, arglist: Public ordinary functions
Function, available-versions: Public ordinary functions
Function, canonicalize-arg: Private ordinary functions
Function, check-version: Public ordinary functions
Function, command-line-args: Public ordinary functions
Function, condition-undefined-function-name: Public ordinary functions
Function, configure-shell: Private ordinary functions
Function, copy-directory: Public ordinary functions
Function, csh-style-init: Private ordinary functions
Function, download-version: Public ordinary functions
Function, dump-core: Public ordinary functions
Function, dumped-core-path: Private ordinary functions
Function, extract-tarball: Private ordinary functions
Function, find-version: Public ordinary functions
Function, find-version-name: Public ordinary functions
Function, help: Public ordinary functions
Function, install: Public ordinary functions
Function, install-from-path: Private ordinary functions
Function, install-function-command: Private ordinary functions
Function, install-package-command: Private ordinary functions
Function, interpret: Public ordinary functions
Function, load-global-shlyfile: Public ordinary functions
Function, load-local-shlyfile: Public ordinary functions
Function, load-shlyfile: Private ordinary functions
Function, load-systems: Public ordinary functions
Function, local-command-symbols: Public ordinary functions
Function, local-dump-core: Public ordinary functions
Function, print: Private ordinary functions
Function, print-package-commands: Public ordinary functions
Function, prompt: Private ordinary functions
Function, qlrequire: Private ordinary functions
Function, read: Private ordinary functions
Function, release-versions: Public ordinary functions
Function, retrieve-releases: Private ordinary functions
Function, rm-core: Public ordinary functions
Function, run-repl: Public ordinary functions
Function, save-app: Public ordinary functions
Function, save-core-image: Public ordinary functions
Function, sh-style-init: Private ordinary functions
Function, shadowing-use-package: Public ordinary functions
Function, shelly-home: Public ordinary functions
Function, terminate: Public ordinary functions
Function, uninstall: Public ordinary functions
Function, uninstall-with-path: Private ordinary functions
Function, upgrade: Public ordinary functions
Function, version-tarball-url: Private ordinary functions
Function, version<: Public ordinary functions
Function, version<=: Public ordinary functions

H
help: Public ordinary functions

I
i: Private macros
install: Public ordinary functions
install-command: Public macros
install-from-path: Private ordinary functions
install-function-command: Private ordinary functions
install-package-command: Private ordinary functions
interpret: Public ordinary functions

L
load-global-shlyfile: Public ordinary functions
load-local-shlyfile: Public ordinary functions
load-shlyfile: Private ordinary functions
load-systems: Public ordinary functions
local-command-symbols: Public ordinary functions
local-dump-core: Public ordinary functions

M
Macro, i: Private macros
Macro, install-command: Public macros
Macro, with-retrying-when-system-not-found: Public macros

P
print: Private ordinary functions
print-package-commands: Public ordinary functions
prompt: Private ordinary functions

Q
qlrequire: Private ordinary functions

R
read: Private ordinary functions
release-versions: Public ordinary functions
retrieve-releases: Private ordinary functions
rm-core: Public ordinary functions
run-repl: Public ordinary functions

S
save-app: Public ordinary functions
save-core-image: Public ordinary functions
sh-style-init: Private ordinary functions
shadowing-use-package: Public ordinary functions
shelly-home: Public ordinary functions

T
terminate: Public ordinary functions

U
uninstall: Public ordinary functions
uninstall-with-path: Private ordinary functions
upgrade: Public ordinary functions

V
version-tarball-url: Private ordinary functions
version<: Public ordinary functions
version<=: Public ordinary functions

W
with-retrying-when-system-not-found: Public macros

Jump to:   A   C   D   E   F   H   I   L   M   P   Q   R   S   T   U   V   W  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   E   F   I   M   P   S   U   V  
Index Entry  Section

C
Condition, shelly-command-not-found-error: Public conditions
Condition, shelly-error: Public conditions
Condition, shelly-read-error: Public conditions
core.lisp: The shelly/src/core․lisp file

E
error.lisp: The shelly/src/error․lisp file

F
File, core.lisp: The shelly/src/core․lisp file
File, error.lisp: The shelly/src/error․lisp file
File, impl.lisp: The shelly/src/impl․lisp file
File, install.lisp: The shelly/src/install․lisp file
File, shelly.asd: The shelly/shelly․asd file
File, shelly.lisp: The shelly/src/shelly․lisp file
File, util.lisp: The shelly/src/util․lisp file
File, versions.lisp: The shelly/src/versions․lisp file

I
impl.lisp: The shelly/src/impl․lisp file
install.lisp: The shelly/src/install․lisp file

M
Module, src: The shelly/src module

P
Package, shelly: The shelly package
Package, shelly-asd: The shelly-asd package
Package, shelly.core: The shelly․core package
Package, shelly.error: The shelly․error package
Package, shelly.impl: The shelly․impl package
Package, shelly.install: The shelly․install package
Package, shelly.util: The shelly․util package
Package, shelly.versions: The shelly․versions package

S
shelly: The shelly system
shelly: The shelly package
shelly-asd: The shelly-asd package
shelly-command-not-found-error: Public conditions
shelly-error: Public conditions
shelly-read-error: Public conditions
shelly.asd: The shelly/shelly․asd file
shelly.core: The shelly․core package
shelly.error: The shelly․error package
shelly.impl: The shelly․impl package
shelly.install: The shelly․install package
shelly.lisp: The shelly/src/shelly․lisp file
shelly.util: The shelly․util package
shelly.versions: The shelly․versions package
src: The shelly/src module
System, shelly: The shelly system

U
util.lisp: The shelly/src/util․lisp file

V
versions.lisp: The shelly/src/versions․lisp file

Jump to:   C   E   F   I   M   P   S   U   V