Browse Source

Project rename: das -> elvish

Cheer Xiao 10 years ago
parent
commit
c1711bbd0a
15 changed files with 35 additions and 51 deletions
  1. 1 1
      LICENSE
  2. 2 2
      Makefile
  3. 9 25
      README.md
  4. 1 1
      edit/attr.go
  5. 1 1
      edit/completion.go
  6. 4 4
      edit/editor.go
  7. 2 2
      edit/highlight.go
  8. 1 1
      edit/reader.go
  9. 2 2
      edit/writer.go
  10. 2 2
      eval/eval.go
  11. 2 2
      eval/exec.go
  12. 1 1
      eval/value.go
  13. 4 4
      main.go
  14. 2 2
      parse/parse.go
  15. 1 1
      util/path_test.go

+ 1 - 1
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:
 

+ 2 - 2
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)

+ 9 - 25
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 - 1
edit/attr.go

@@ -1,7 +1,7 @@
 package edit
 
 import (
-	"github.com/xiaq/das/parse"
+	"github.com/xiaq/elvish/parse"
 )
 
 var (

+ 1 - 1
edit/completion.go

@@ -2,7 +2,7 @@ package edit
 
 import (
 	"fmt"
-	"github.com/xiaq/das/parse"
+	"github.com/xiaq/elvish/parse"
 	"io/ioutil"
 )
 

+ 4 - 4
edit/editor.go

@@ -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"
 )
 

+ 2 - 2
edit/highlight.go

@@ -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

+ 1 - 1
edit/reader.go

@@ -3,7 +3,7 @@ package edit
 import (
 	"bufio"
 	"fmt"
-	"github.com/xiaq/das/util"
+	"github.com/xiaq/elvish/util"
 	"time"
 )
 

+ 2 - 2
edit/writer.go

@@ -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"

+ 2 - 2
eval/eval.go

@@ -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 - 2
eval/exec.go

@@ -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"

+ 1 - 1
eval/value.go

@@ -3,7 +3,7 @@ package eval
 import (
 	"bytes"
 	"fmt"
-	"github.com/xiaq/das/parse"
+	"github.com/xiaq/elvish/parse"
 	"strconv"
 	"strings"
 	"unicode"

+ 4 - 4
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"
 )

+ 2 - 2
parse/parse.go

@@ -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"

+ 1 - 1
util/path_test.go

@@ -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 {