Skip to content

Commit 1b3763a

Browse files
authored
Merge pull request #134 from xushiwei/q
rename gop => xgo
2 parents 760f8d8 + 9bb466b commit 1b3763a

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ _testmain.go
2525
*.prof
2626

2727
testgsh*
28+
xgo_autogen*.go
2829
gop_autogen*.go

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you are using it and would like to let us know, you can submit a [Pull Reques
1818
<div align="center">
1919
<p></p>
2020
<p>
21-
<a href="https://github.com/goplus/gop"><img width="80" src="https://xgo.dev/favicon.svg"></a>
21+
<a href="https://github.com/goplus/xgo"><img width="80" src="https://xgo.dev/favicon.svg"></a>
2222
</p>
2323
<h3>The XGo Programming Language</h3>
2424
</div>

gsh/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
gsh - An alternative to write shell scripts
22
======
33

4-
[![Language](https://img.shields.io/badge/language-XGo-blue.svg)](https://github.com/goplus/gop)
5-
[![GitHub release](https://img.shields.io/github/v/tag/goplus/gop.svg?label=Go%2b+release)](https://github.com/goplus/gop/releases)
4+
[![Language](https://img.shields.io/badge/language-XGo-blue.svg)](https://github.com/goplus/xgo)
5+
[![GitHub release](https://img.shields.io/github/v/tag/goplus/xgo.svg?label=XGo+release)](https://github.com/goplus/xgo/releases)
66
[![Discord](https://img.shields.io/badge/Discord-online-success.svg?logo=discord&logoColor=white)](https://discord.gg/mYjWCJDcAr)
77
[![GoDoc](https://pkg.go.dev/badge/github.com/qiniu/x/gsh.svg)](https://pkg.go.dev/github.com/qiniu/x/gsh)
88

@@ -19,9 +19,9 @@ First, let's create a file named [example.gsh](demo/hello/example.gsh) and write
1919
mkdir "testgsh"
2020
```
2121

22-
You don't need a `go.mod` file, just enter `gop run ./example.gsh` directly to run.
22+
You don't need a `go.mod` file, just enter `xgo run ./example.gsh` directly to run.
2323

24-
It's strange to you that the file extension of XGo source is not `.xgo` but `.gsh`. It is only because XGo register `.gsh` as a builtin [classfile](https://github.com/goplus/gop/blob/main/doc/classfile.md).
24+
It's strange to you that the file extension of XGo source is not `.xgo` but `.gsh`. It is only because XGo register `.gsh` as a builtin [classfile](https://github.com/goplus/xgo/blob/main/doc/classfile.md).
2525

2626
We can change [example.gsh](demo/example/example.gsh) more complicated:
2727

@@ -77,7 +77,7 @@ If a shell command is a Go/XGo language keyword (eg. `go`), or the command is a
7777
```coffee
7878
exec "go", "version"
7979
exec "./test.sh"
80-
exec "/usr/bin/env gop run ."
80+
exec "/usr/bin/env xgo run ."
8181
```
8282

8383
You can also specify environment variables to run:
@@ -162,10 +162,10 @@ total 72
162162
-rw-r--r-- 1 xushiwei staff 365 Jun 19 00:25 example.gsh
163163
-rw-r--r-- 1 xushiwei staff 126 Jun 19 09:33 go.mod
164164
-rw-r--r-- 1 xushiwei staff 165 Jun 19 09:33 go.sum
165-
-rw-r--r-- 1 xushiwei staff 1938 Jun 19 10:00 gop_autogen.go
165+
-rw-r--r-- 1 xushiwei staff 1938 Jun 19 10:00 xgo_autogen.go
166166
```
167167

168-
We can use [XGo powerful built-in data processing capabilities](https://github.com/goplus/gop/blob/main/doc/docs.md#data-processing) to process captured `output`:
168+
We can use [XGo powerful built-in data processing capabilities](https://github.com/goplus/xgo/blob/main/doc/docs.md#data-processing) to process captured `output`:
169169

170170
```coffee
171171
type file struct {

gsh/classfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (p *App) Exec__0(env map[string]string, name string, args ...string) error
8080
}
8181

8282
// Exec executes a shell command line with $env variables support.
83-
// - exec "GOP_GOCMD=tinygo gop run ."
83+
// - exec "XGO_GOCMD=tinygo xgo run ."
8484
// - exec "ls -l $HOME"
8585
func (p *App) Exec__1(cmdline string) error {
8686
var iCmd = -1

0 commit comments

Comments
 (0)