This commit is contained in:
Andrey Parhomenko 2024-01-04 17:13:03 +03:00
parent 8169d4a8c0
commit 1522cce6e1
30 changed files with 57 additions and 57 deletions

4
go.mod
View file

@ -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
View file

@ -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
View file

@ -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"
) )

View file

@ -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

View file

@ -4,7 +4,7 @@ import(
"os" "os"
"io" "io"
"fmt" "fmt"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var( var(

View file

@ -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) {

View file

@ -6,7 +6,7 @@ import(
"os" "os"
"bufio" "bufio"
"log" "log"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
const( const(

View file

@ -3,7 +3,7 @@ package echo
import ( import (
"fmt" "fmt"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var( var(

View file

@ -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"
) )

View file

@ -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"
) )

View file

@ -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) {

View file

@ -3,7 +3,7 @@ package grange
import( import(
"fmt" "fmt"
"strconv" "strconv"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var( var(

View file

@ -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) {}

View file

@ -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) {

View file

@ -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"
) )

View file

@ -5,7 +5,7 @@ import(
"strings" "strings"
"regexp" "regexp"
"path" "path"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var( var(

View file

@ -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) {

View file

@ -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) {

View file

@ -3,7 +3,7 @@ package noext
import( import(
"fmt" "fmt"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var( var(

View file

@ -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 (

View file

@ -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 {

View file

@ -4,7 +4,7 @@ import(
"os" "os"
"bufio" "bufio"
"fmt" "fmt"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var( var(

View file

@ -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) {

View file

@ -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 {

View file

@ -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) {

View file

@ -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 = "_"

View file

@ -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"
) )

View file

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"unicode" "unicode"
"strconv" "strconv"
"github.com/di4f/cli/mtool" "github.com/vultras/cli/mtool"
) )
var ( var (

View file

@ -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) {

View file

@ -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 (