started using zed
This commit is contained in:
parent
bdf1fd0ceb
commit
b5d6c67685
4 changed files with 11 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
exe/
|
exe/
|
||||||
*.exe
|
*.exe
|
||||||
*.swp
|
*.swp
|
||||||
|
/bb
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -2,4 +2,4 @@ module surdeus.su/util/bb
|
||||||
|
|
||||||
go 1.22.3
|
go 1.22.3
|
||||||
|
|
||||||
require surdeus.su/core/cli v0.3.0
|
require surdeus.su/core/cli v0.5.0
|
||||||
|
|
2
go.sum
2
go.sum
|
@ -2,3 +2,5 @@ surdeus.su/core/cli v0.1.2 h1:qPzjawqPyZsO4Z5SaA1u141recVE65yioA83Qs7Jecs=
|
||||||
surdeus.su/core/cli v0.1.2/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
|
surdeus.su/core/cli v0.1.2/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
|
||||||
surdeus.su/core/cli v0.3.0 h1:/2UfObbesg3/2FPn/9Ys/w/H2XOxOv72ehidwctAGdM=
|
surdeus.su/core/cli v0.3.0 h1:/2UfObbesg3/2FPn/9Ys/w/H2XOxOv72ehidwctAGdM=
|
||||||
surdeus.su/core/cli v0.3.0/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
|
surdeus.su/core/cli v0.3.0/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
|
||||||
|
surdeus.su/core/cli v0.5.0 h1:jYvE0JVDikFT9FhWGV3wIAcMgByziAVxTwsVUwWkeHs=
|
||||||
|
surdeus.su/core/cli v0.5.0/go.mod h1:r9JtQz3aEJzpYzMaNUNQHJoYkoWKNPi047qhd5uGlmA=
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
package cat
|
package cat
|
||||||
|
|
||||||
/* Concatenate files in "stdout". */
|
/* Concatenate files in "stdout". */
|
||||||
import(
|
import (
|
||||||
"os"
|
|
||||||
"io"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
|
||||||
"surdeus.su/core/cli/mtool"
|
"surdeus.su/core/cli/mtool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var (
|
||||||
blockSize int
|
blockSize int
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -37,7 +39,7 @@ func fcat(f *os.File) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Run(flags *mtool.Flags) {
|
func Run(flags *mtool.Flags) {
|
||||||
flags.IntVar(&blockSize, "bs", 512, "block size")
|
flags.IntVar(&blockSize, "bs", 512, "block size")
|
||||||
flags.Parse()
|
flags.Parse()
|
||||||
args := flags.Args()
|
args := flags.Args()
|
||||||
|
|
Loading…
Reference in a new issue