...
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
|
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/vultras/cli v0.0.0-20240104140711-6890b8ea2e24 h1:dtvNOsgZWz3P87suCr5FKeTevNGLzrVc/uKiKGxW8e0=
|
||||||
github.com/di4f/cli v0.0.0-20231214183522-32f786133a58/go.mod h1:a2hUcQVjIEYR0VW3gf640cgbxCvUwA9vwKvkSkw1SUU=
|
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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
|
|
||||||
"github.com/di4f/bb/tool/cat"
|
"github.com/vultras/bb/tool/cat"
|
||||||
"github.com/di4f/bb/tool/date"
|
"github.com/vultras/bb/tool/date"
|
||||||
"github.com/di4f/bb/tool/ec"
|
"github.com/vultras/bb/tool/ec"
|
||||||
"github.com/di4f/bb/tool/echo"
|
"github.com/vultras/bb/tool/echo"
|
||||||
"github.com/di4f/bb/tool/ftest"
|
"github.com/vultras/bb/tool/ftest"
|
||||||
"github.com/di4f/bb/tool/grange"
|
"github.com/vultras/bb/tool/grange"
|
||||||
"github.com/di4f/bb/tool/in"
|
"github.com/vultras/bb/tool/in"
|
||||||
"github.com/di4f/bb/tool/ln"
|
"github.com/vultras/bb/tool/ln"
|
||||||
"github.com/di4f/bb/tool/ls"
|
"github.com/vultras/bb/tool/ls"
|
||||||
"github.com/di4f/bb/tool/mergelbl"
|
"github.com/vultras/bb/tool/mergelbl"
|
||||||
"github.com/di4f/bb/tool/mkdir"
|
"github.com/vultras/bb/tool/mkdir"
|
||||||
"github.com/di4f/bb/tool/paths"
|
"github.com/vultras/bb/tool/paths"
|
||||||
"github.com/di4f/bb/tool/quote"
|
"github.com/vultras/bb/tool/quote"
|
||||||
"github.com/di4f/bb/tool/read"
|
"github.com/vultras/bb/tool/read"
|
||||||
"github.com/di4f/bb/tool/sort"
|
"github.com/vultras/bb/tool/sort"
|
||||||
"github.com/di4f/bb/tool/tac"
|
"github.com/vultras/bb/tool/tac"
|
||||||
"github.com/di4f/bb/tool/uniq"
|
"github.com/vultras/bb/tool/uniq"
|
||||||
"github.com/di4f/bb/tool/urlprs"
|
"github.com/vultras/bb/tool/urlprs"
|
||||||
"github.com/di4f/bb/tool/useprog"
|
"github.com/vultras/bb/tool/useprog"
|
||||||
"github.com/di4f/bb/tool/wc"
|
"github.com/vultras/bb/tool/wc"
|
||||||
"github.com/di4f/bb/tool/whoami"
|
"github.com/vultras/bb/tool/whoami"
|
||||||
"github.com/di4f/bb/tool/yes"
|
"github.com/vultras/bb/tool/yes"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# tk
|
# 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
|
Gopher ToolKit. Not POSIX compatible BusyBox-like set of programs
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import(
|
||||||
"os"
|
"os"
|
||||||
"io"
|
"io"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var(
|
||||||
|
|
|
@ -3,7 +3,7 @@ package date
|
||||||
import(
|
import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import(
|
||||||
"os"
|
"os"
|
||||||
"bufio"
|
"bufio"
|
||||||
"log"
|
"log"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
const(
|
const(
|
||||||
|
|
|
@ -3,7 +3,7 @@ package echo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var(
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ package gfalse
|
||||||
|
|
||||||
import(
|
import(
|
||||||
"os"
|
"os"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flags *mtool.Flags) {
|
func Run(flags *mtool.Flags) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package grange
|
||||||
import(
|
import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package gtrue
|
package gtrue
|
||||||
|
|
||||||
import "github.com/di4f/cli/mtool"
|
import "github.com/vultras/cli/mtool"
|
||||||
|
|
||||||
func Run(flags *mtool.Flags) {}
|
func Run(flags *mtool.Flags) {}
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package ln
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import(
|
||||||
"strings"
|
"strings"
|
||||||
"regexp"
|
"regexp"
|
||||||
"path"
|
"path"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var(
|
||||||
|
|
|
@ -5,7 +5,7 @@ import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"bufio"
|
"bufio"
|
||||||
"log"
|
"log"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package noext
|
||||||
|
|
||||||
import(
|
import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var(
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
//"github.com/di4f/tk/pathx"
|
//"github.com/vultras/tk/pathx"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -7,7 +7,7 @@ import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"unicode"
|
"unicode"
|
||||||
"bufio"
|
"bufio"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func HasWhiteSpace(s string) bool {
|
func HasWhiteSpace(s string) bool {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import(
|
||||||
"os"
|
"os"
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var(
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"github.com/di4f/bb/input"
|
"github.com/vultras/bb/input"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import(
|
||||||
"io"
|
"io"
|
||||||
"fmt"
|
"fmt"
|
||||||
"bufio"
|
"bufio"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func reverse(a []string) chan string {
|
func reverse(a []string) chan string {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"bufio"
|
"bufio"
|
||||||
"io"
|
"io"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var nilStr = "_"
|
var nilStr = "_"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"unicode"
|
"unicode"
|
||||||
"strconv"
|
"strconv"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import(
|
||||||
"os/user"
|
"os/user"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(flagSet *mtool.Flags) {
|
func Run(flagSet *mtool.Flags) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/di4f/bb/input"
|
"github.com/vultras/bb/input"
|
||||||
"github.com/di4f/cli/mtool"
|
"github.com/vultras/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in a new issue