Browse Source

rename from mimicry to servitor

Benton Edmondson 1 year ago
parent
commit
dd5d523732

+ 1 - 1
.gitignore

@@ -1,2 +1,2 @@
 mi
-mimicry
+servitor

+ 1 - 1
.vscode/settings.json

@@ -1,6 +1,6 @@
 {
     "[go]": {
-        // format by running go fmt mimicry/... repeatedly until fixed point is reached
+        // format by running go fmt servitor/... repeatedly until fixed point is reached
         "editor.formatOnSave": false
     }
 }

+ 2 - 2
client/client.go

@@ -5,8 +5,8 @@ import (
 	"errors"
 	"fmt"
 	"golang.org/x/sync/singleflight"
-	"mimicry/jtp"
-	"mimicry/object"
+	"servitor/jtp"
+	"servitor/object"
 	"net/url"
 	"os"
 	"strings"

+ 2 - 2
config/config.go

@@ -53,11 +53,11 @@ func Parse() (*Config, error) {
 
 func location() string {
 	if xdg := os.Getenv("XDG_CONFIG_HOME"); xdg != "" {
-		return xdg + "/mimicry/config.toml"
+		return xdg + "/servitor/config.toml"
 	}
 
 	if home := os.Getenv("HOME"); home != "" {
-		return home + "/.config/mimicry/config.toml"
+		return home + "/.config/servitor/config.toml"
 	}
 
 	return ""

+ 1 - 1
feed/feed.go

@@ -2,7 +2,7 @@ package feed
 
 import (
 	"fmt"
-	"mimicry/pub"
+	"servitor/pub"
 )
 
 type Feed struct {

+ 2 - 2
feed/feed_test.go

@@ -1,8 +1,8 @@
 package feed
 
 import (
-	"mimicry/object"
-	"mimicry/pub"
+	"servitor/object"
+	"servitor/pub"
 	"testing"
 )
 

+ 1 - 1
gemtext/gemtext.go

@@ -1,7 +1,7 @@
 package gemtext
 
 import (
-	"mimicry/style"
+	"servitor/style"
 	"regexp"
 	"strings"
 )

+ 1 - 1
gemtext/gemtext_test.go

@@ -1,7 +1,7 @@
 package gemtext
 
 import (
-	"mimicry/style"
+	"servitor/style"
 	"testing"
 )
 

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module mimicry
+module servitor
 
 go 1.20
 

+ 2 - 2
hypertext/hypertext.go

@@ -3,8 +3,8 @@ package hypertext
 import (
 	"golang.org/x/net/html"
 	"golang.org/x/net/html/atom"
-	"mimicry/ansi"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/style"
 	"regexp"
 	"strings"
 )

+ 2 - 2
hypertext/hypertext_test.go

@@ -1,8 +1,8 @@
 package hypertext
 
 import (
-	"mimicry/ansi"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/style"
 	"testing"
 )
 

+ 1 - 1
jtp/jtp.go

@@ -7,7 +7,7 @@ import (
 	"errors"
 	"fmt"
 	lru "github.com/hashicorp/golang-lru/v2"
-	"mimicry/mime"
+	"servitor/mime"
 	"net"
 	"net/url"
 	"regexp"

+ 2 - 2
main.go

@@ -1,8 +1,8 @@
 package main
 
 import (
-	"mimicry/config"
-	"mimicry/ui"
+	"servitor/config"
+	"servitor/ui"
 	"os"
 	"strings"
 	"time"

+ 1 - 1
markdown/markdown.go

@@ -4,7 +4,7 @@ import (
 	"bytes"
 	"github.com/yuin/goldmark"
 	"github.com/yuin/goldmark/extension"
-	"mimicry/hypertext"
+	"servitor/hypertext"
 )
 
 var renderer = goldmark.New(goldmark.WithExtensions(extension.GFM))

+ 1 - 1
markdown/markdown_test.go

@@ -1,7 +1,7 @@
 package markdown
 
 import (
-	"mimicry/style"
+	"servitor/style"
 	"testing"
 )
 

+ 6 - 6
object/object.go

@@ -4,12 +4,12 @@ import (
 	"errors"
 	"fmt"
 	"math"
-	"mimicry/ansi"
-	"mimicry/gemtext"
-	"mimicry/hypertext"
-	"mimicry/markdown"
-	"mimicry/mime"
-	"mimicry/plaintext"
+	"servitor/ansi"
+	"servitor/gemtext"
+	"servitor/hypertext"
+	"servitor/markdown"
+	"servitor/mime"
+	"servitor/plaintext"
 	"net/url"
 	"time"
 )

+ 2 - 2
plaintext/plaintext.go

@@ -1,8 +1,8 @@
 package plaintext
 
 import (
-	"mimicry/ansi"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/style"
 	"regexp"
 	"strings"
 )

+ 2 - 2
plaintext/plaintext_test.go

@@ -1,8 +1,8 @@
 package plaintext
 
 import (
-	"mimicry/ansi"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/style"
 	"testing"
 )
 

+ 5 - 5
pub/activity.go

@@ -4,11 +4,11 @@ import (
 	"errors"
 	"fmt"
 	"golang.org/x/exp/slices"
-	"mimicry/ansi"
-	"mimicry/client"
-	"mimicry/mime"
-	"mimicry/object"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/client"
+	"servitor/mime"
+	"servitor/object"
+	"servitor/style"
 	"net/url"
 	"sync"
 	"time"

+ 5 - 5
pub/actor.go

@@ -4,11 +4,11 @@ import (
 	"errors"
 	"fmt"
 	"golang.org/x/exp/slices"
-	"mimicry/ansi"
-	"mimicry/client"
-	"mimicry/mime"
-	"mimicry/object"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/client"
+	"servitor/mime"
+	"servitor/object"
+	"servitor/style"
 	"net/url"
 	"strings"
 	"time"

+ 2 - 2
pub/collection.go

@@ -4,8 +4,8 @@ import (
 	"errors"
 	"fmt"
 	"golang.org/x/exp/slices"
-	"mimicry/client"
-	"mimicry/object"
+	"servitor/client"
+	"servitor/object"
 	"net/url"
 	"sync"
 )

+ 2 - 2
pub/common.go

@@ -3,8 +3,8 @@ package pub
 import (
 	"errors"
 	"fmt"
-	"mimicry/client"
-	"mimicry/object"
+	"servitor/client"
+	"servitor/object"
 	"net/url"
 	"sync"
 	"time"

+ 2 - 2
pub/failure.go

@@ -1,8 +1,8 @@
 package pub
 
 import (
-	"mimicry/mime"
-	"mimicry/style"
+	"servitor/mime"
+	"servitor/style"
 	"time"
 )
 

+ 1 - 1
pub/interfaces.go

@@ -1,7 +1,7 @@
 package pub
 
 import (
-	"mimicry/mime"
+	"servitor/mime"
 	"time"
 )
 

+ 2 - 2
pub/link.go

@@ -4,8 +4,8 @@ import (
 	"errors"
 	"fmt"
 	"golang.org/x/exp/slices"
-	"mimicry/mime"
-	"mimicry/object"
+	"servitor/mime"
+	"servitor/object"
 	"net/url"
 )
 

+ 5 - 5
pub/post.go

@@ -4,11 +4,11 @@ import (
 	"errors"
 	"fmt"
 	"golang.org/x/exp/slices"
-	"mimicry/ansi"
-	"mimicry/client"
-	"mimicry/mime"
-	"mimicry/object"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/client"
+	"servitor/mime"
+	"servitor/object"
+	"servitor/style"
 	"net/url"
 	"strings"
 	"sync"

+ 1 - 1
pub/user-input.go

@@ -1,7 +1,7 @@
 package pub
 
 import (
-	"mimicry/client"
+	"servitor/client"
 	"strings"
 )
 

+ 1 - 1
splicer/splicer.go

@@ -1,7 +1,7 @@
 package splicer
 
 import (
-	"mimicry/pub"
+	"servitor/pub"
 	"sync"
 )
 

+ 1 - 1
style/style.go

@@ -2,7 +2,7 @@ package style
 
 import (
 	"fmt"
-	"mimicry/ansi"
+	"servitor/ansi"
 	"strconv"
 	"strings"
 )

+ 8 - 8
ui/ui.go

@@ -2,14 +2,14 @@ package ui
 
 import (
 	"fmt"
-	"mimicry/ansi"
-	"mimicry/config"
-	"mimicry/feed"
-	"mimicry/history"
-	"mimicry/mime"
-	"mimicry/pub"
-	"mimicry/splicer"
-	"mimicry/style"
+	"servitor/ansi"
+	"servitor/config"
+	"servitor/feed"
+	"servitor/history"
+	"servitor/mime"
+	"servitor/pub"
+	"servitor/splicer"
+	"servitor/style"
 	"os/exec"
 	"strconv"
 	"strings"