Updated all import urls
This commit is contained in:
parent
c0a5330968
commit
fcce8a2d46
50 changed files with 58 additions and 58 deletions
|
@ -20,9 +20,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/ncruces/go-strftime"
|
||||
"github.com/ncruces/zenity"
|
||||
"github.com/ncruces/zenity/internal/zencmd"
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"git.bigun.dev/evan/zenity/internal/zencmd"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
const unspecified = "\x00"
|
||||
|
@ -320,7 +320,7 @@ func parseFlags() []string {
|
|||
func validateFlags() {
|
||||
if version {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"github.com/ncruces/zenity/internal/zencmd"
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"git.bigun.dev/evan/zenity/internal/zencmd"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func notify(opts ...zenity.Option) error {
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"github.com/ncruces/zenity/internal/zencmd"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"git.bigun.dev/evan/zenity/internal/zencmd"
|
||||
)
|
||||
|
||||
func progress(opts ...zenity.Option) (err error) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"image/color"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func selectColor(opts options) (color.Color, error) {
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ package zenity
|
|||
import (
|
||||
"image/color"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func selectColor(opts options) (color.Color, error) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"sync"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"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) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func calendar(text string, opts options) (time.Time, error) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func calendar(text string, opts options) (time.Time, error) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func entry(text string, opts options) (string, error) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
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) {
|
||||
args := []string{"--entry", "--text", quoteMnemonics(text)}
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func entry(text string, opts options) (string, error) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func selectFile(opts options) (name string, err error) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ package zenity
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func selectFile(opts options) (string, error) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"unicode/utf16"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func selectFile(opts options) (string, error) {
|
||||
|
|
|
@ -5,7 +5,7 @@ package win
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package zencmd
|
||||
|
||||
import "github.com/ncruces/zenity/internal/win"
|
||||
import "git.bigun.dev/evan/zenity/internal/win"
|
||||
|
||||
// KillParent is internal.
|
||||
func KillParent() {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zencmd
|
|||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func list(text string, items []string, opts options) (string, error) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
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) {
|
||||
args := []string{"--list", "--hide-header", "--text", text}
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func list(text string, items []string, opts options) (string, error) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func message(kind messageKind, text string, opts options) error {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
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 {
|
||||
args := []string{"--text", text, "--no-markup"}
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func notify(text string, opts options) error {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package zenity
|
||||
|
||||
import "github.com/ncruces/zenity/internal/zenutil"
|
||||
import "git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
|
||||
func notify(text string, opts options) error {
|
||||
args := []string{"--notification", "--text", text}
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func notify(text string, opts options) error {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func progress(opts options) (ProgressDialog, error) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package zenity
|
||||
|
||||
import "github.com/ncruces/zenity/internal/zenutil"
|
||||
import "git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
|
||||
func progress(opts options) (ProgressDialog, error) {
|
||||
args := []string{"--progress"}
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func progress(opts options) (ProgressDialog, error) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func password(opts options) (string, string, error) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity"
|
||||
"git.bigun.dev/evan/zenity"
|
||||
"go.uber.org/goleak"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package zenity
|
||||
|
||||
import "github.com/ncruces/zenity/internal/zenutil"
|
||||
import "git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
|
||||
func password(opts options) (string, string, error) {
|
||||
args := []string{"--password"}
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func password(opts options) (string, string, error) {
|
||||
|
|
2
util.go
2
util.go
|
@ -8,7 +8,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func quoteAccelerators(text string) string {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) {
|
||||
if !okcancel {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func Test_quoteAccelerators(t *testing.T) {
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"image/color"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zenutil"
|
||||
"git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
)
|
||||
|
||||
func ptr[T any](v T) *T { return &v }
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ncruces/zenity/internal/zencmd"
|
||||
"git.bigun.dev/evan/zenity/internal/zencmd"
|
||||
)
|
||||
|
||||
func Test_applyOptions(t *testing.T) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package zenity
|
||||
|
||||
import "github.com/ncruces/zenity/internal/zenutil"
|
||||
import "git.bigun.dev/evan/zenity/internal/zenutil"
|
||||
|
||||
func isAvailable() bool { return zenutil.IsAvailable() }
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package zenity
|
|||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/ncruces/zenity/internal/win"
|
||||
"git.bigun.dev/evan/zenity/internal/win"
|
||||
)
|
||||
|
||||
func isAvailable() bool { return true }
|
||||
|
|
Loading…
Reference in a new issue