mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 19:07:51 +08:00
Project rename: das -> elvish
This commit is contained in:
parent
1a003c3ccd
commit
c1711bbd0a
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) das developers and contributors, All rights reserved.
|
||||
Copyright (c) elvish developers and contributors, All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
|
4
Makefile
4
Makefile
|
@ -1,10 +1,10 @@
|
|||
EXE := das
|
||||
EXE := elvish
|
||||
PKGS := edit eval parse util
|
||||
PKG_PATHS := $(addprefix ./,$(PKGS)) # go tools want an explicit ./
|
||||
PKG_COVERAGES := $(addprefix coverage/,$(PKGS))
|
||||
|
||||
exe:
|
||||
go install github.com/xiaq/das
|
||||
go install github.com/xiaq/elvish
|
||||
|
||||
test:
|
||||
go test $(PKG_PATHS)
|
||||
|
|
34
README.md
34
README.md
|
@ -25,25 +25,29 @@ Code](http://golang.org/doc/code.html), but here is a quick snippet:
|
|||
```
|
||||
export GOPATH=$HOME/go
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
go get github.com/xiaq/das
|
||||
das
|
||||
go get github.com/xiaq/elvish
|
||||
elvish
|
||||
```
|
||||
|
||||
To update and rebuild:
|
||||
|
||||
```
|
||||
go get -u github.com/xiaq/das
|
||||
go get -u github.com/xiaq/elvish
|
||||
```
|
||||
|
||||
Remember to put the two `export`s above into your `bashrc` or `zshrc` (or
|
||||
whatever).
|
||||
|
||||
## Name
|
||||
|
||||
In rogue-likes, elven items have a reputation of high quality. `elvish` is a corrupted form of `elvish`. In rogue-likes
|
||||
|
||||
## In Need of a Name!
|
||||
|
||||
`das` is not the final name I intend to use for this project; it is just a
|
||||
`elvish` is not the final name I intend to use for this project; it is just a
|
||||
little word I keep typing when I'm idle. Being impossible to google for German
|
||||
speakers, this is a terrible name for any project (and I'm not willing to call
|
||||
it `daslang` or `dasshell`). So if you happen to be here and have a good name
|
||||
it `elvishlang` or `elvishshell`). So if you happen to be here and have a good name
|
||||
in mind, drop me a line. Before that though, please read [Name](#name) for
|
||||
some of my thoughts about naming
|
||||
|
||||
|
@ -232,26 +236,6 @@ of connected one after another.
|
|||
|
||||
(TO BE WRITTEN)
|
||||
|
||||
## Name
|
||||
|
||||
**das** is a corrupted form of **dash**. It also happens to be the German
|
||||
definite neuter article.
|
||||
|
||||
I have some other ideas in mind. One of them is **elv**, since I found
|
||||
"elvish" to be a great adjective - I can't use "elf" though, since it's
|
||||
already [taken](http://www.cs.cmu.edu/~fp/elf.html) and may be confused with
|
||||
the well known [file
|
||||
format](http://en.wikipedia.org/wiki/Executable_and_Linkable_Format).
|
||||
|
||||
Another possible source of names is the names of actual seashells; but my
|
||||
English vocabulary is too small for me to recall any beyond "nautilus", which
|
||||
is both too long and already taken.
|
||||
|
||||
I'm not avoiding names ending in "sh" though; but I do find "bash" to be a
|
||||
terrible name. "fish" is clever, but it has a quite [unpleasant
|
||||
adjective](https://en.wiktionary.org/wiki/fishy). I find "dash" really good
|
||||
though, which is why it came to my mind :).
|
||||
|
||||
## License
|
||||
|
||||
BSD 2-clause license. See LICENSE for a copy.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package edit
|
||||
|
||||
import (
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -2,7 +2,7 @@ package edit
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ package edit
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xiaq/das/edit/tty"
|
||||
"github.com/xiaq/das/eval"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/edit/tty"
|
||||
"github.com/xiaq/elvish/eval"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package edit
|
||||
|
||||
import (
|
||||
"github.com/xiaq/das/eval"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/elvish/eval"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
)
|
||||
|
||||
// Pseudo-ItemType's used by the Highlighter. They are given negative values
|
||||
|
|
|
@ -3,7 +3,7 @@ package edit
|
|||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ package edit
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/xiaq/das/edit/tty"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/edit/tty"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"os"
|
||||
"strings"
|
||||
"unicode"
|
||||
|
|
|
@ -4,8 +4,8 @@ package eval
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
|
@ -2,8 +2,8 @@ package eval
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"os"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
|
|
@ -3,7 +3,7 @@ package eval
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
"strconv"
|
||||
"strings"
|
||||
"unicode"
|
||||
|
|
8
main.go
8
main.go
|
@ -2,10 +2,10 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xiaq/das/edit"
|
||||
"github.com/xiaq/das/eval"
|
||||
"github.com/xiaq/das/parse"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/edit"
|
||||
"github.com/xiaq/elvish/eval"
|
||||
"github.com/xiaq/elvish/parse"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"os"
|
||||
"os/user"
|
||||
)
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// das source lexer and parser.
|
||||
// elvish source lexer and parser.
|
||||
package parse
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xiaq/das/util"
|
||||
"github.com/xiaq/elvish/util"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func TestGetwd(t *testing.T) {
|
||||
dir, error := ioutil.TempDir("", "dastest.")
|
||||
dir, error := ioutil.TempDir("", "elvishtest.")
|
||||
if error != nil {
|
||||
t.Errorf("Got error when creating temp dir: %v", error)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user