summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md23
-rw-r--r--description1
-rw-r--r--go.mod2
-rw-r--r--internal/prompt/main.go2
-rw-r--r--internal/rtree/index.go2
-rw-r--r--internal/rtree/init.go2
-rw-r--r--internal/rtree/main.go2
-rw-r--r--internal/rtree/repo.go2
-rw-r--r--internal/rtree/shared_test.go2
-rw-r--r--main.go6
10 files changed, 23 insertions, 21 deletions
diff --git a/README.md b/README.md
index ca363c9..6007860 100644
--- a/README.md
+++ b/README.md
@@ -11,15 +11,15 @@ house for protection.
Alternatively, the name can also be read as
"[Go](https://golang.org)-[fu](http://www.retrologic.com/jargon/F/suffix-fu.html)".
-# Installation
+## Installation
```bash
$ make && make install
```
-# List of applets
+## List of applets
-## `mdedit`
+### `mdedit`
This provides a very simple in-browser Markdown editor with a preview pane.
Run as `mdedit path/to/document.md localhost:8080` and then navigate to
@@ -28,7 +28,7 @@ to the server (and thus to the source file) after one second of no typing.
It is recommended to not listen on anything besides `localhost`; there is no
authentication or anything.
-## `prettyprompt`
+### `prettyprompt`
This renders my shell prompt. Among other things, it identifies the current
host by name and signature color (in the screenshot below, dark green for
@@ -40,21 +40,22 @@ possible, e.g. if the cwd starts with `$GOPATH/src/`, that is shortened to
![prettyprompt screenshot](./screenshot-prettyprompt.png)
-## `rtree`
+### `rtree`
This manages my Git repositories. Borrowing from the convention established by
Go's `GOPATH`, the location of each local repository is defined by its remote
-URL. For example, this repo here will always be checked out at
+URL. For example, this repo here (when cloned from its primary upstream) will
+always be checked out at
```
-$GOPATH/src/github.com/majewsky/gofu
+$GOPATH/src/git.xyrillian.de/gofu
```
The most common operation with `rtree` is to get a repository path:
```bash
-$ rtree get https://github.com/majewsky/gofu
-/x/src/github.com/majewsky/gofu
+$ rtree get https://git.xyrillian.de/gofu
+/x/src/git.xyrillian.de/gofu
```
This will automatically clone the repo if it has not been cloned yet. Git URL aliases [like
@@ -66,9 +67,9 @@ means `cd to git repository` and is based on `rtree get`:
```bash
$ pwd
/home/stefan
-$ cg gh:majewsky/gofu
+$ cg xy:gofu
$ pwd
-/x/src/github.com/majewsky/gofu
+/x/src/git.xyrillian.de/gofu
```
When `rtree get` clones a new repo, it will look for existing repos with the
diff --git a/description b/description
new file mode 100644
index 0000000..91f439e
--- /dev/null
+++ b/description
@@ -0,0 +1 @@
+My personal busybox built in Go
diff --git a/go.mod b/go.mod
index b1991df..e2c15e9 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/majewsky/gofu
+module git.xyrillian.de/gofu
go 1.25.0
diff --git a/internal/prompt/main.go b/internal/prompt/main.go
index 5257290..e21b4cf 100644
--- a/internal/prompt/main.go
+++ b/internal/prompt/main.go
@@ -10,7 +10,7 @@ import (
"golang.org/x/term"
- "github.com/majewsky/gofu/internal/cli"
+ "git.xyrillian.de/gofu/internal/cli"
)
// Exec executes the prettyprompt applet and returns an exit code (0 for
diff --git a/internal/rtree/index.go b/internal/rtree/index.go
index 549b51c..7dd8d94 100644
--- a/internal/rtree/index.go
+++ b/internal/rtree/index.go
@@ -13,7 +13,7 @@ import (
"sort"
"strings"
- "github.com/majewsky/gofu/internal/cli"
+ "git.xyrillian.de/gofu/internal/cli"
)
// Index represents the contents of the index.json file.
diff --git a/internal/rtree/init.go b/internal/rtree/init.go
index d2118c0..8bae9c5 100644
--- a/internal/rtree/init.go
+++ b/internal/rtree/init.go
@@ -9,7 +9,7 @@ import (
"regexp"
"strings"
- "github.com/majewsky/gofu/internal/cli"
+ "git.xyrillian.de/gofu/internal/cli"
)
// RemoteAlias describes an alias that can be used in a Git remote URL (as
diff --git a/internal/rtree/main.go b/internal/rtree/main.go
index 68faa36..245ceb9 100644
--- a/internal/rtree/main.go
+++ b/internal/rtree/main.go
@@ -6,7 +6,7 @@ package rtree
import (
"strings"
- "github.com/majewsky/gofu/internal/cli"
+ "git.xyrillian.de/gofu/internal/cli"
)
// Exec executes the rtree applet and returns an exit code (0 for success, >0
diff --git a/internal/rtree/repo.go b/internal/rtree/repo.go
index 92b7e74..91dd8da 100644
--- a/internal/rtree/repo.go
+++ b/internal/rtree/repo.go
@@ -10,7 +10,7 @@ import (
"regexp"
"strings"
- "github.com/majewsky/gofu/internal/cli"
+ "git.xyrillian.de/gofu/internal/cli"
)
// Repo describes the entry for a repository in the index file.
diff --git a/internal/rtree/shared_test.go b/internal/rtree/shared_test.go
index 4810695..224b0cd 100644
--- a/internal/rtree/shared_test.go
+++ b/internal/rtree/shared_test.go
@@ -15,7 +15,7 @@ import (
"strings"
"testing"
- "github.com/majewsky/gofu/internal/cli"
+ "git.xyrillian.de/gofu/internal/cli"
)
// Path to a directory where tests can put their index files.
diff --git a/main.go b/main.go
index 0b406a6..ef228f5 100644
--- a/main.go
+++ b/main.go
@@ -8,9 +8,9 @@ import (
"os"
"path/filepath"
- "github.com/majewsky/gofu/internal/mdedit"
- "github.com/majewsky/gofu/internal/prompt"
- "github.com/majewsky/gofu/internal/rtree"
+ "git.xyrillian.de/gofu/internal/mdedit"
+ "git.xyrillian.de/gofu/internal/prompt"
+ "git.xyrillian.de/gofu/internal/rtree"
)
func main() {