...
This commit is contained in:
parent
8169d4a8c0
commit
1522cce6e1
30 changed files with 57 additions and 57 deletions
4
go.mod
4
go.mod
|
@ -1,5 +1,5 @@
|
|||
module github.com/di4f/bb
|
||||
module github.com/vultras/bb
|
||||
|
||||
go 1.18
|
||||
|
||||
require github.com/di4f/cli v0.0.0-20231214183522-32f786133a58
|
||||
require github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1,2 +1,2 @@
|
|||
github.com/di4f/cli v0.0.0-20231214183522-32f786133a58 h1:b3bk2zD7YqLJDYoNAGawVbJovkNzJPDULYuF6+ar09w=
|
||||
github.com/di4f/cli v0.0.0-20231214183522-32f786133a58/go.mod h1:a2hUcQVjIEYR0VW3gf640cgbxCvUwA9vwKvkSkw1SUU=
|
||||
github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24 h1:dtvNOsgZWz3P87suCr5FKeTevNGLzrVc/uKiKGxW8e0=
|
||||
github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24/go.mod h1:xkex4RuKXi1a1XOYE1SI0mzsgQ1KXbYwLgXHwS5VbNI=
|
||||
|
|
46
main.go
46
main.go
|
@ -2,30 +2,30 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
|
||||
"github.com/di4f/bb/tool/cat"
|
||||
"github.com/di4f/bb/tool/date"
|
||||
"github.com/di4f/bb/tool/ec"
|
||||
"github.com/di4f/bb/tool/echo"
|
||||
"github.com/di4f/bb/tool/ftest"
|
||||
"github.com/di4f/bb/tool/grange"
|
||||
"github.com/di4f/bb/tool/in"
|
||||
"github.com/di4f/bb/tool/ln"
|
||||
"github.com/di4f/bb/tool/ls"
|
||||
"github.com/di4f/bb/tool/mergelbl"
|
||||
"github.com/di4f/bb/tool/mkdir"
|
||||
"github.com/di4f/bb/tool/paths"
|
||||
"github.com/di4f/bb/tool/quote"
|
||||
"github.com/di4f/bb/tool/read"
|
||||
"github.com/di4f/bb/tool/sort"
|
||||
"github.com/di4f/bb/tool/tac"
|
||||
"github.com/di4f/bb/tool/uniq"
|
||||
"github.com/di4f/bb/tool/urlprs"
|
||||
"github.com/di4f/bb/tool/useprog"
|
||||
"github.com/di4f/bb/tool/wc"
|
||||
"github.com/di4f/bb/tool/whoami"
|
||||
"github.com/di4f/bb/tool/yes"
|
||||
"github.com/vultras/bb/tool/cat"
|
||||
"github.com/vultras/bb/tool/date"
|
||||
"github.com/vultras/bb/tool/ec"
|
||||
"github.com/vultras/bb/tool/echo"
|
||||
"github.com/vultras/bb/tool/ftest"
|
||||
"github.com/vultras/bb/tool/grange"
|
||||
"github.com/vultras/bb/tool/in"
|
||||
"github.com/vultras/bb/tool/ln"
|
||||
"github.com/vultras/bb/tool/ls"
|
||||
"github.com/vultras/bb/tool/mergelbl"
|
||||
"github.com/vultras/bb/tool/mkdir"
|
||||
"github.com/vultras/bb/tool/paths"
|
||||
"github.com/vultras/bb/tool/quote"
|
||||
"github.com/vultras/bb/tool/read"
|
||||
"github.com/vultras/bb/tool/sort"
|
||||
"github.com/vultras/bb/tool/tac"
|
||||
"github.com/vultras/bb/tool/uniq"
|
||||
"github.com/vultras/bb/tool/urlprs"
|
||||
"github.com/vultras/bb/tool/useprog"
|
||||
"github.com/vultras/bb/tool/wc"
|
||||
"github.com/vultras/bb/tool/whoami"
|
||||
"github.com/vultras/bb/tool/yes"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# tk
|
||||
|
||||
![Insert here a gopher, please](https://raw.githubusercontent.com/di4f/tk//master/media/gopher.png)
|
||||
![Insert here a gopher, please](https://raw.githubusercontent.com/vultras/tk//master/media/gopher.png)
|
||||
|
||||
Gopher ToolKit. Not POSIX compatible BusyBox-like set of programs
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import(
|
|||
"os"
|
||||
"io"
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var(
|
||||
|
|
|
@ -3,7 +3,7 @@ package date
|
|||
import(
|
||||
"fmt"
|
||||
"time"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import(
|
|||
"os"
|
||||
"bufio"
|
||||
"log"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
const(
|
||||
|
|
|
@ -3,7 +3,7 @@ package echo
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var(
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"io"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"io"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package gfalse
|
|||
|
||||
import(
|
||||
"os"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flags *mtool.Flags) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package grange
|
|||
import(
|
||||
"fmt"
|
||||
"strconv"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package gtrue
|
||||
|
||||
import "github.com/di4f/cli/mtool"
|
||||
import "github.com/vultras/cli/mtool"
|
||||
|
||||
func Run(flags *mtool.Flags) {}
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"io"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package ln
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import(
|
|||
"strings"
|
||||
"regexp"
|
||||
"path"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var(
|
||||
|
|
|
@ -5,7 +5,7 @@ import(
|
|||
"fmt"
|
||||
"bufio"
|
||||
"log"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
|
||||
"path/filepath"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package noext
|
|||
|
||||
import(
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var(
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
"path"
|
||||
"strings"
|
||||
|
||||
//"github.com/di4f/tk/pathx"
|
||||
//"github.com/vultras/tk/pathx"
|
||||
"path/filepath"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -7,7 +7,7 @@ import(
|
|||
"fmt"
|
||||
"unicode"
|
||||
"bufio"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func HasWhiteSpace(s string) bool {
|
||||
|
|
|
@ -4,7 +4,7 @@ import(
|
|||
"os"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var(
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"github.com/di4f/bb/input"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/bb/input"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import(
|
|||
"io"
|
||||
"fmt"
|
||||
"bufio"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func reverse(a []string) chan string {
|
||||
|
|
|
@ -6,7 +6,7 @@ import(
|
|||
"fmt"
|
||||
"bufio"
|
||||
"io"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"net"
|
||||
"net/url"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var nilStr = "_"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"os"
|
||||
"os/exec"
|
||||
"fmt"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"fmt"
|
||||
"unicode"
|
||||
"strconv"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,7 +5,7 @@ import(
|
|||
"os/user"
|
||||
"fmt"
|
||||
"log"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
func Run(flagSet *mtool.Flags) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"os"
|
||||
"fmt"
|
||||
"strings"
|
||||
"github.com/di4f/bb/input"
|
||||
"github.com/di4f/cli/mtool"
|
||||
"github.com/vultras/bb/input"
|
||||
"github.com/vultras/cli/mtool"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in a new issue