Updated all import urls

This commit is contained in:
Evan 2024-07-10 00:06:01 -04:00
parent c0a5330968
commit fcce8a2d46
50 changed files with 58 additions and 58 deletions

View file

@ -20,9 +20,9 @@ import (
"time" "time"
"github.com/ncruces/go-strftime" "github.com/ncruces/go-strftime"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"github.com/ncruces/zenity/internal/zencmd" "git.bigun.dev/evan/zenity/internal/zencmd"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
const unspecified = "\x00" const unspecified = "\x00"
@ -320,7 +320,7 @@ func parseFlags() []string {
func validateFlags() { func validateFlags() {
if version { if version {
fmt.Printf("zenity %s %s/%s\n", getVersion(), runtime.GOOS, runtime.GOARCH) fmt.Printf("zenity %s %s/%s\n", getVersion(), runtime.GOOS, runtime.GOARCH)
fmt.Println("https://github.com/ncruces/zenity") fmt.Println("https://git.bigun.dev/evan/zenity")
os.Exit(0) os.Exit(0)
} }

View file

@ -8,9 +8,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"github.com/ncruces/zenity/internal/zencmd" "git.bigun.dev/evan/zenity/internal/zencmd"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func notify(opts ...zenity.Option) error { func notify(opts ...zenity.Option) error {

View file

@ -9,8 +9,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"github.com/ncruces/zenity/internal/zencmd" "git.bigun.dev/evan/zenity/internal/zencmd"
) )
func progress(opts ...zenity.Option) (err error) { func progress(opts ...zenity.Option) (err error) {

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"image/color" "image/color"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func selectColor(opts options) (color.Color, error) { func selectColor(opts options) (color.Color, error) {

View file

@ -9,8 +9,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -5,7 +5,7 @@ package zenity
import ( import (
"image/color" "image/color"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func selectColor(opts options) (color.Color, error) { func selectColor(opts options) (color.Color, error) {

View file

@ -5,7 +5,7 @@ import (
"sync" "sync"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
var ( var (

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"time" "time"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func calendar(text string, opts options) (t time.Time, err error) { func calendar(text string, opts options) (t time.Time, err error) {

View file

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func calendar(text string, opts options) (time.Time, error) { func calendar(text string, opts options) (time.Time, error) {

View file

@ -5,7 +5,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func calendar(text string, opts options) (time.Time, error) { func calendar(text string, opts options) (time.Time, error) {

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"os" "os"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func entry(text string, opts options) (string, error) { func entry(text string, opts options) (string, error) {

View file

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func entry(text string, opts options) (string, error) { func entry(text string, opts options) (string, error) {
args := []string{"--entry", "--text", quoteMnemonics(text)} args := []string{"--entry", "--text", quoteMnemonics(text)}

View file

@ -4,7 +4,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func entry(text string, opts options) (string, error) { func entry(text string, opts options) (string, error) {

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"path/filepath" "path/filepath"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func selectFile(opts options) (name string, err error) { func selectFile(opts options) (name string, err error) {

View file

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -5,7 +5,7 @@ package zenity
import ( import (
"strings" "strings"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func selectFile(opts options) (string, error) { func selectFile(opts options) (string, error) {

View file

@ -9,7 +9,7 @@ import (
"unicode/utf16" "unicode/utf16"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func selectFile(opts options) (string, error) { func selectFile(opts options) (string, error) {

View file

@ -5,7 +5,7 @@ package win
import ( import (
"fmt" "fmt"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
const ( const (

View file

@ -1,6 +1,6 @@
package zencmd package zencmd
import "github.com/ncruces/zenity/internal/win" import "git.bigun.dev/evan/zenity/internal/win"
// KillParent is internal. // KillParent is internal.
func KillParent() { func KillParent() {

View file

@ -3,7 +3,7 @@ package zencmd
import ( import (
"strconv" "strconv"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
"golang.org/x/sys/windows" "golang.org/x/sys/windows"
) )

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"fmt" "fmt"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func list(text string, items []string, opts options) (string, error) { func list(text string, items []string, opts options) (string, error) {

View file

@ -9,7 +9,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func list(text string, items []string, opts options) (string, error) { func list(text string, items []string, opts options) (string, error) {
args := []string{"--list", "--hide-header", "--text", text} args := []string{"--list", "--hide-header", "--text", text}

View file

@ -4,7 +4,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func list(text string, items []string, opts options) (string, error) { func list(text string, items []string, opts options) (string, error) {

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"os" "os"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func message(kind messageKind, text string, opts options) error { func message(kind messageKind, text string, opts options) error {

View file

@ -9,7 +9,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func message(kind messageKind, text string, opts options) error { func message(kind messageKind, text string, opts options) error {
args := []string{"--text", text, "--no-markup"} args := []string{"--text", text, "--no-markup"}

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"context" "context"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
"golang.org/x/sys/windows" "golang.org/x/sys/windows"
) )

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"strings" "strings"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func notify(text string, opts options) error { func notify(text string, opts options) error {

View file

@ -5,7 +5,7 @@ import (
"errors" "errors"
"testing" "testing"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func notify(text string, opts options) error { func notify(text string, opts options) error {
args := []string{"--notification", "--text", text} args := []string{"--notification", "--text", text}

View file

@ -13,8 +13,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func notify(text string, opts options) error { func notify(text string, opts options) error {

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"fmt" "fmt"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func progress(opts options) (ProgressDialog, error) { func progress(opts options) (ProgressDialog, error) {

View file

@ -6,7 +6,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func progress(opts options) (ProgressDialog, error) { func progress(opts options) (ProgressDialog, error) {
args := []string{"--progress"} args := []string{"--progress"}

View file

@ -6,7 +6,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func progress(opts options) (ProgressDialog, error) { func progress(opts options) (ProgressDialog, error) {

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"os" "os"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func password(opts options) (string, string, error) { func password(opts options) (string, string, error) {

View file

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity" "git.bigun.dev/evan/zenity"
"go.uber.org/goleak" "go.uber.org/goleak"
) )

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func password(opts options) (string, string, error) { func password(opts options) (string, string, error) {
args := []string{"--password"} args := []string{"--password"}

View file

@ -4,7 +4,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func password(opts options) (string, string, error) { func password(opts options) (string, string, error) {

View file

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func quoteAccelerators(text string) string { func quoteAccelerators(text string) string {

View file

@ -1,6 +1,6 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func getButtons(dialog, okcancel bool, opts options) (btns zenutil.DialogButtons) { func getButtons(dialog, okcancel bool, opts options) (btns zenutil.DialogButtons) {
if !okcancel { if !okcancel {

View file

@ -7,7 +7,7 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func Test_quoteAccelerators(t *testing.T) { func Test_quoteAccelerators(t *testing.T) {

View file

@ -13,7 +13,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
const ( const (

View file

@ -15,7 +15,7 @@ import (
"image/color" "image/color"
"time" "time"
"github.com/ncruces/zenity/internal/zenutil" "git.bigun.dev/evan/zenity/internal/zenutil"
) )
func ptr[T any](v T) *T { return &v } func ptr[T any](v T) *T { return &v }

View file

@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncruces/zenity/internal/zencmd" "git.bigun.dev/evan/zenity/internal/zencmd"
) )
func Test_applyOptions(t *testing.T) { func Test_applyOptions(t *testing.T) {

View file

@ -2,7 +2,7 @@
package zenity package zenity
import "github.com/ncruces/zenity/internal/zenutil" import "git.bigun.dev/evan/zenity/internal/zenutil"
func isAvailable() bool { return zenutil.IsAvailable() } func isAvailable() bool { return zenutil.IsAvailable() }

View file

@ -3,7 +3,7 @@ package zenity
import ( import (
"reflect" "reflect"
"github.com/ncruces/zenity/internal/win" "git.bigun.dev/evan/zenity/internal/win"
) )
func isAvailable() bool { return true } func isAvailable() bool { return true }