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=
github.com/vultras/cli v0.0.0-20240104140711-6890b8ea2e24/go.mod h1:xkex4RuKXi1a1XOYE1SI0mzsgQ1KXbYwLgXHwS5VbNI=
vultras.su/core/cli v0.0.0-20240104195345-5d79542278a0 h1:acA77oEg7hDuUchyBvw7scG9gayVLFAC9/CGuqyfLSA=
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 (
"fmt"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
"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"
"vultras.su/core/bb/tool/cat"
"vultras.su/core/bb/tool/date"
"vultras.su/core/bb/tool/ec"
"vultras.su/core/bb/tool/echo"
"vultras.su/core/bb/tool/ftest"
"vultras.su/core/bb/tool/grange"
"vultras.su/core/bb/tool/in"
"vultras.su/core/bb/tool/ln"
"vultras.su/core/bb/tool/ls"
"vultras.su/core/bb/tool/mergelbl"
"vultras.su/core/bb/tool/mkdir"
"vultras.su/core/bb/tool/paths"
"vultras.su/core/bb/tool/quote"
"vultras.su/core/bb/tool/read"
"vultras.su/core/bb/tool/sort"
"vultras.su/core/bb/tool/tac"
"vultras.su/core/bb/tool/uniq"
"vultras.su/core/bb/tool/urlprs"
"vultras.su/core/bb/tool/useprog"
"vultras.su/core/bb/tool/wc"
"vultras.su/core/bb/tool/whoami"
"vultras.su/core/bb/tool/yes"
"os"
)

View file

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

View file

@ -3,7 +3,7 @@ package date
import(
"fmt"
"time"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

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

View file

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

View file

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

View file

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

View file

@ -2,7 +2,7 @@ package gfalse
import(
"os"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flags *mtool.Flags) {

View file

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

View file

@ -1,5 +1,5 @@
package gtrue
import "github.com/vultras/cli/mtool"
import "vultras.su/core/cli/mtool"
func Run(flags *mtool.Flags) {}

View file

@ -5,7 +5,7 @@ import (
"io"
"bufio"
"fmt"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

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

View file

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

View file

@ -5,7 +5,7 @@ import(
"fmt"
"bufio"
"log"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

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

View file

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

View file

@ -7,7 +7,7 @@ import(
"fmt"
"unicode"
"bufio"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func HasWhiteSpace(s string) bool {

View file

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

View file

@ -4,8 +4,8 @@ import (
"fmt"
"os"
"sort"
"github.com/vultras/bb/input"
"github.com/vultras/cli/mtool"
"vultras.su/core/bb/input"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

@ -5,7 +5,7 @@ import(
"io"
"fmt"
"bufio"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func reverse(a []string) chan string {

View file

@ -6,7 +6,7 @@ import(
"fmt"
"bufio"
"io"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

@ -5,7 +5,7 @@ import (
"fmt"
"net"
"net/url"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
var nilStr = "_"

View file

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

View file

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

View file

@ -5,7 +5,7 @@ import(
"os/user"
"fmt"
"log"
"github.com/vultras/cli/mtool"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {

View file

@ -5,8 +5,8 @@ import (
"os"
"fmt"
"strings"
"github.com/vultras/bb/input"
"github.com/vultras/cli/mtool"
"vultras.su/core/bb/input"
"vultras.su/core/cli/mtool"
)
var (