Commit 1fe5fb0
Changed files (28)
cmd
gitmal
internal
generator
links
cmd/gitmal/main.go
@@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"
- "mokhan.ca/antonmedv/gitmal/internal/generator"
- "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/generator"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
flag "github.com/spf13/pflag"
)
internal/generator/blob.go
@@ -12,10 +12,10 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/v2/styles"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/links"
- "mokhan.ca/antonmedv/gitmal/internal/pool"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/links"
+ "mokhan.ca/xlgmokha/gitmal/internal/pool"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
func GenerateBlobs(files []git.Blob, params Params) error {
@@ -151,4 +151,3 @@ func GenerateBlobs(files []git.Blob, params Params) error {
})
})
}
-
internal/generator/branches.go
@@ -6,8 +6,8 @@ import (
"path/filepath"
"sort"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
func GenerateBranches(branches []git.Ref, defaultBranch string, params Params) error {
internal/generator/branches_json.go
@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
)
type BranchJSON struct {
internal/generator/commit.go
@@ -14,9 +14,9 @@ import (
"github.com/alecthomas/chroma/v2/styles"
"github.com/bluekeyes/go-gitdiff/gitdiff"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/pool"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/pool"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
func GenerateCommits(commits map[string]git.Commit, params Params) error {
internal/generator/commits_atom.go
@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
)
type AtomFeed struct {
internal/generator/commits_json.go
@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
)
type CommitJSON struct {
internal/generator/commits_list.go
@@ -6,8 +6,8 @@ import (
"path/filepath"
"slices"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
const commitsPerPage = 100
internal/generator/css.go
@@ -4,7 +4,7 @@ import (
"os"
"path/filepath"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
func GenerateCSS(params Params) error {
internal/generator/list.go
@@ -7,10 +7,10 @@ import (
"sort"
"strings"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/links"
- "mokhan.ca/antonmedv/gitmal/internal/pool"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/links"
+ "mokhan.ca/xlgmokha/gitmal/internal/pool"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
type dirInfo struct {
internal/generator/params.go
@@ -1,6 +1,6 @@
package generator
-import "mokhan.ca/antonmedv/gitmal/internal/git"
+import "mokhan.ca/xlgmokha/gitmal/internal/git"
type Params struct {
Name string
internal/generator/readme.go
@@ -5,8 +5,8 @@ import (
"html/template"
"strings"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/links"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/links"
)
func readme(files []git.Blob, dirsSet, filesSet links.Set, params Params, rootHref string) template.HTML {
internal/generator/utils.go
@@ -6,8 +6,8 @@ import (
"path/filepath"
"strings"
- "mokhan.ca/antonmedv/gitmal/internal/git"
- "mokhan.ca/antonmedv/gitmal/internal/templates"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/templates"
)
const Dot = "·"
internal/links/links.go
@@ -8,7 +8,7 @@ import (
"golang.org/x/net/html"
- "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
)
type Set map[string]struct{}
internal/templates/blob.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.BlobParams */ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.BlobParams */ -}}
{{- define "head" -}}
<style>
[id] {
internal/templates/branches.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.BranchesParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.BranchesParams*/ -}}
{{- define "head" -}}
<style>
.branches {
internal/templates/commit.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.CommitParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.CommitParams*/ -}}
{{- define "head" -}}
<style>
h1 code {
internal/templates/commits_list.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.CommitsListParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.CommitsListParams*/ -}}
{{- define "head" -}}
<style>
.commits {
internal/templates/file_tree.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype:mokhan.ca/antonmedv/gitmal/pkg/templates.FileTreeParams*/ -}}
+{{- /*gotype:mokhan.ca/xlgmokha/gitmal/pkg/templates.FileTreeParams*/ -}}
{{- define "file_tree" -}}
{{- range .Nodes}}
{{- if .IsDir}}
internal/templates/header.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.HeaderParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.HeaderParams*/ -}}
{{- define "header" -}}
<header>
{{- if .Ref}}
internal/templates/layout.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.LayoutParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.LayoutParams*/ -}}
<!DOCTYPE html>
<html lang="en">
<head>
internal/templates/list.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.ListParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.ListParams*/ -}}
{{- define "head" -}}
<style>
.files {
internal/templates/markdown.gohtml
@@ -1,4 +1,4 @@
-{{- /*gotype: mokhan.ca/antonmedv/gitmal/pkg/templates.MarkdownParams*/ -}}
+{{- /*gotype: mokhan.ca/xlgmokha/gitmal/pkg/templates.MarkdownParams*/ -}}
{{- define "head" -}}
<style>
[id] {
internal/templates/templates.go
@@ -7,7 +7,7 @@ import (
"path/filepath"
"time"
- "mokhan.ca/antonmedv/gitmal/internal/git"
+ "mokhan.ca/xlgmokha/gitmal/internal/git"
)
var funcs = FuncMap{
go.mod
@@ -1,4 +1,4 @@
-module mokhan.ca/antonmedv/gitmal
+module mokhan.ca/xlgmokha/gitmal
go 1.25.1