Skip to content

Commit

Permalink
Move completion scripts to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Jan 23, 2025
1 parent 1f506d1 commit b01d503
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 13 deletions.
8 changes: 8 additions & 0 deletions comp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ox

import "embed"

// templates are the embedded completion templates.
//
//go:embed comp/*
var templates embed.FS
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions defs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package ox

import (
"context"
"embed"
"fmt"
"io"
"io/fs"
Expand Down Expand Up @@ -642,15 +641,3 @@ func has[T inti | uinti](sb *strings.Builder, a, b T, s string) {
sb.WriteString(s)
}
}

// templates are the embedded completion templates.
//
//go:embed bash.txt
//go:embed bash.bash
//go:embed fish.txt
//go:embed fish.fish
//go:embed zsh.txt
//go:embed zsh.zsh
//go:embed powershell.txt
//go:embed powershell.ps1
var templates embed.FS

0 comments on commit b01d503

Please sign in to comment.