eb2a792301
In addition to an uncontroversial spelling fix this addresses several, related, warnings produced by the `golint` tool. In general I agree with golint that unnecessary "else" blocks should be avoided. So this change refactors those cases. Note: I recognize that `golint` is deprecated (see https://github.com/golang/go/issues/38968) since it is no longer being maintained and there is controversy about its set of warnings. Nonetheless, it appears that the warnings it emits for this project are all reasonable and actionable with one potential exception: the naming of the `map_` method in pkg/eval/compile_value.go. |
||
---|---|---|
cmd | ||
pkg | ||
tools | ||
website | ||
.appveyor.yml | ||
.cirrus.yml | ||
.dockerignore | ||
.gitattributes | ||
.gitignore | ||
CONTRIBUTING.md | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
NEXT-RELEASE.md | ||
README.md |
Elvish: Friendly Interactive Shell and Expressive Programming Language
Elvish is a friendly interactive shell and an expressive programming language. It runs on Linux, BSDs, macOS and Windows. Despite its pre-1.0 status, it is already suitable for most daily interactive use.
Visit the official website https://elv.sh for prebuilt binaries, blog posts, documentation and other resources.
User groups (all connected with matterbridge):
Building Elvish
Most users can just use prebuilt binaries and do not need to build from source.
To build Elvish from source, you need
-
A supported OS: Linux, {Free,Net,Open}BSD, macOS, or Windows.
NOTE: Windows support is experimental, and only Windows 10 is supported.
-
Go >= 1.13.
To build Elvish from source, follow these steps:
# 1. Start from any directory you want to store Elvish's source code
# 2. Clone the Git repository
git clone https://github.com/elves/elvish
# 3. Change into the repository
cd elvish
# 4. Build and install Elvish
make get
This will install Elvish to ~/go/bin
.
Alternatively, you can also just use go get
to install Elvish:
go get -u github.com/elves/elvish
This will clone the Git repository to ~/go/src/github.com/elves/elvish
,
updating it if already exists, and install Elvish to ~/go/bin
. However, Elvish
built this way will lack version information, although it is otherwise fully
functional.
Some tips on installation:
-
Remember to add
$HOME/go/bin
to yourPATH
so that you can runelvish
directly. -
If you want to install Elvish to a different place, follow these steps to set
GOPATH
, and Elvish will be installed to$GOPATH/bin
instead.
Contributing to Elvish
See CONTRIBUTING.md for more notes for contributors.