formatting

This commit is contained in:
Arpad Ryszka 2025-09-01 04:10:35 +02:00
parent d7dfbd221f
commit 221de5c509
12 changed files with 363 additions and 135 deletions

View File

@ -1,11 +1,11 @@
package wand package wand
import ( import (
"code.squareroundforest.org/arpio/bind"
"errors" "errors"
"fmt" "fmt"
"reflect" "reflect"
"regexp" "regexp"
"code.squareroundforest.org/arpio/bind"
) )
var commandNameExpression = regexp.MustCompile("^[a-zA-Z_][a-zA-Z_0-9]*$") var commandNameExpression = regexp.MustCompile("^[a-zA-Z_][a-zA-Z_0-9]*$")

View File

@ -1,11 +1,11 @@
package wand package wand
import ( import (
"code.squareroundforest.org/arpio/bind"
"slices" "slices"
"strconv" "strconv"
"strings" "strings"
"unicode" "unicode"
"code.squareroundforest.org/arpio/bind"
) )
type value struct { type value struct {

View File

@ -2,9 +2,10 @@
Generated with https://code.squareroundforest.org/arpio/docreflect Generated with https://code.squareroundforest.org/arpio/docreflect
*/ */
package wand package wand
import "code.squareroundforest.org/arpio/docreflect" import "code.squareroundforest.org/arpio/docreflect"
func init() { func init() {
docreflect.Register("code.squareroundforest.org/arpio/wand/tools", "") docreflect.Register("code.squareroundforest.org/arpio/wand/tools", "")
docreflect.Register("code.squareroundforest.org/arpio/wand/tools.Docreflect", "\nfunc(out, packageName, gopaths)") docreflect.Register("code.squareroundforest.org/arpio/wand/tools.Docreflect", "\nfunc(out, packageName, gopaths)")

View File

@ -1,8 +1,8 @@
package wand package wand
import ( import (
"code.squareroundforest.org/arpio/docreflect"
"code.squareroundforest.org/arpio/bind" "code.squareroundforest.org/arpio/bind"
"code.squareroundforest.org/arpio/docreflect"
"fmt" "fmt"
"io" "io"
"reflect" "reflect"

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
package wand package wand
import ( import (
"code.squareroundforest.org/arpio/bind"
"fmt" "fmt"
"reflect" "reflect"
"code.squareroundforest.org/arpio/bind"
) )
func validateKeyValues(cmd Cmd, keyValues map[string][]string, originalNames map[string]string) error { func validateKeyValues(cmd Cmd, keyValues map[string][]string, originalNames map[string]string) error {

View File

@ -1,11 +1,11 @@
package wand package wand
import ( import (
"reflect"
"code.squareroundforest.org/arpio/bind" "code.squareroundforest.org/arpio/bind"
"io" "io"
"time" "reflect"
"strings" "strings"
"time"
) )
func filter[T any](list []T, predicate func(T) bool) []T { func filter[T any](list []T, predicate func(T) bool) []T {

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"code.squareroundforest.org/arpio/wand/tools"
"log" "log"
"os" "os"
"code.squareroundforest.org/arpio/wand/tools"
) )
func main() { func main() {

View File

@ -1,11 +1,11 @@
package tools package tools
import ( import (
"io"
"strings"
"os/exec"
"os"
"bytes" "bytes"
"io"
"os"
"os/exec"
"strings"
) )
func execc(stdin io.Reader, stdout, stderr io.Writer, command string, args []string, env []string) error { func execc(stdin io.Reader, stdout, stderr io.Writer, command string, args []string, env []string) error {

View File

@ -1,18 +1,18 @@
package tools package tools
import ( import (
"io"
"bufio" "bufio"
"errors"
"fmt"
"unicode"
"hash/fnv"
"bytes" "bytes"
"encoding/base64" "encoding/base64"
"strings" "errors"
"fmt"
"hash/fnv"
"io"
"os" "os"
"sort"
"path" "path"
"sort"
"strings"
"unicode"
) )
type ExecOptions struct { type ExecOptions struct {

View File

@ -2,8 +2,8 @@ package tools
import ( import (
"code.squareroundforest.org/arpio/docreflect/generate" "code.squareroundforest.org/arpio/docreflect/generate"
"io"
"fmt" "fmt"
"io"
) )
type MarkdownOptions struct { type MarkdownOptions struct {