feat: FINALLY WE HAVE OUR OWN SERVICE!

This commit is contained in:
Andrey Parhomenko 2024-01-05 03:22:55 +03:00
parent 1522cce6e1
commit fb5a0257db
29 changed files with 57 additions and 57 deletions

6
go.mod
View file

@ -1,5 +1,5 @@
module github.com/vultras/bb module vultras.su/core/bb
go 1.18 go 1.21.5
require github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24 require vultras.su/core/cli v0.0.0-20240104195345-5d79542278a0

4
go.sum
View file

@ -1,2 +1,2 @@
github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24 h1:dtvNOsgZWz3P87suCr5FKeTevNGLzrVc/uKiKGxW8e0= vultras.su/core/cli v0.0.0-20240104195345-5d79542278a0 h1:acA77oEg7hDuUchyBvw7scG9gayVLFAC9/CGuqyfLSA=
github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24/go.mod h1:xkex4RuKXi1a1XOYE1SI0mzsgQ1KXbYwLgXHwS5VbNI= vultras.su/core/cli v0.0.0-20240104195345-5d79542278a0/go.mod h1:rYu/sFWE3vUkDSSJCZt+K1aVaso0MYcZ+tmxQd4whdQ=

46
main.go
View file

@ -2,30 +2,30 @@ package main
import ( import (
"fmt" "fmt"
"github.com/vultras/cli/mtool" "vultras.su/core/cli/mtool"
"github.com/vultras/bb/tool/cat" "vultras.su/core/bb/tool/cat"
"github.com/vultras/bb/tool/date" "vultras.su/core/bb/tool/date"
"github.com/vultras/bb/tool/ec" "vultras.su/core/bb/tool/ec"
"github.com/vultras/bb/tool/echo" "vultras.su/core/bb/tool/echo"
"github.com/vultras/bb/tool/ftest" "vultras.su/core/bb/tool/ftest"
"github.com/vultras/bb/tool/grange" "vultras.su/core/bb/tool/grange"
"github.com/vultras/bb/tool/in" "vultras.su/core/bb/tool/in"
"github.com/vultras/bb/tool/ln" "vultras.su/core/bb/tool/ln"
"github.com/vultras/bb/tool/ls" "vultras.su/core/bb/tool/ls"
"github.com/vultras/bb/tool/mergelbl" "vultras.su/core/bb/tool/mergelbl"
"github.com/vultras/bb/tool/mkdir" "vultras.su/core/bb/tool/mkdir"
"github.com/vultras/bb/tool/paths" "vultras.su/core/bb/tool/paths"
"github.com/vultras/bb/tool/quote" "vultras.su/core/bb/tool/quote"
"github.com/vultras/bb/tool/read" "vultras.su/core/bb/tool/read"
"github.com/vultras/bb/tool/sort" "vultras.su/core/bb/tool/sort"
"github.com/vultras/bb/tool/tac" "vultras.su/core/bb/tool/tac"
"github.com/vultras/bb/tool/uniq" "vultras.su/core/bb/tool/uniq"
"github.com/vultras/bb/tool/urlprs" "vultras.su/core/bb/tool/urlprs"
"github.com/vultras/bb/tool/useprog" "vultras.su/core/bb/tool/useprog"
"github.com/vultras/bb/tool/wc" "vultras.su/core/bb/tool/wc"
"github.com/vultras/bb/tool/whoami" "vultras.su/core/bb/tool/whoami"
"github.com/vultras/bb/tool/yes" "vultras.su/core/bb/tool/yes"
"os" "os"
) )

View file

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

View file

@ -3,7 +3,7 @@ package date
import( import(
"fmt" "fmt"
"time" "time"
"github.com/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
const( const(

View file

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

View file

@ -5,7 +5,7 @@ import (
"io" "io"
"bufio" "bufio"
"fmt" "fmt"
"github.com/vultras/cli/mtool" "vultras.su/core/cli/mtool"
"path/filepath" "path/filepath"
) )

View file

@ -5,7 +5,7 @@ import (
"io" "io"
"bufio" "bufio"
"fmt" "fmt"
"github.com/vultras/cli/mtool" "vultras.su/core/cli/mtool"
"path/filepath" "path/filepath"
) )

View file

@ -2,7 +2,7 @@ package gfalse
import( import(
"os" "os"
"github.com/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
var( var(

View file

@ -1,5 +1,5 @@
package gtrue package gtrue
import "github.com/vultras/cli/mtool" import "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/cli/mtool"
"path/filepath" "path/filepath"
) )

View file

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

View file

@ -5,7 +5,7 @@ import(
"fmt" "fmt"
"bufio" "bufio"
"log" "log"
"github.com/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
var( var(

View file

@ -9,9 +9,9 @@ import (
"path" "path"
"strings" "strings"
//"github.com/vultras/tk/pathx" //"vultras.su/core/tk/pathx"
"path/filepath" "path/filepath"
"github.com/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
var ( var (

View file

@ -7,7 +7,7 @@ import(
"fmt" "fmt"
"unicode" "unicode"
"bufio" "bufio"
"github.com/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
var( var(

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"os" "os"
"sort" "sort"
"github.com/vultras/bb/input" "vultras.su/core/bb/input"
"github.com/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/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/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
var nilStr = "_" var nilStr = "_"

View file

@ -4,7 +4,7 @@ import (
"os" "os"
"os/exec" "os/exec"
"fmt" "fmt"
"github.com/vultras/cli/mtool" "vultras.su/core/cli/mtool"
"path/filepath" "path/filepath"
) )

View file

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

View file

@ -5,7 +5,7 @@ import(
"os/user" "os/user"
"fmt" "fmt"
"log" "log"
"github.com/vultras/cli/mtool" "vultras.su/core/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/vultras/bb/input" "vultras.su/core/bb/input"
"github.com/vultras/cli/mtool" "vultras.su/core/cli/mtool"
) )
var ( var (