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
import (
"code.squareroundforest.org/arpio/bind"
"errors"
"fmt"
"reflect"
"regexp"
"code.squareroundforest.org/arpio/bind"
)
var commandNameExpression = regexp.MustCompile("^[a-zA-Z_][a-zA-Z_0-9]*$")

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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