Skip to content

Commit

Permalink
v20240404
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Mar 6, 2024
1 parent b4b25c6 commit a5e14db
Show file tree
Hide file tree
Showing 8 changed files with 884 additions and 1,367 deletions.
182 changes: 34 additions & 148 deletions README.md

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions cli/brook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func main() {
df := func() {}
app := cli.NewApp()
app.Name = "Brook"
app.Version = "20240214"
app.Version = "20240404"
app.Usage = "A cross-platform programmable network tool"
app.Authors = []*cli.Author{
{
Expand Down Expand Up @@ -266,15 +266,15 @@ func main() {
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.StringFlag{
Name: "blockCIDR4List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr4.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr4.txt",
},
&cli.StringFlag{
Name: "blockCIDR6List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr6.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr6.txt",
},
&cli.StringSliceFlag{
Name: "blockGeoIP",
Expand Down Expand Up @@ -469,15 +469,15 @@ func main() {
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.StringFlag{
Name: "blockCIDR4List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr4.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr4.txt",
},
&cli.StringFlag{
Name: "blockCIDR6List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr6.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr6.txt",
},
&cli.StringSliceFlag{
Name: "blockGeoIP",
Expand Down Expand Up @@ -690,15 +690,15 @@ func main() {
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.StringFlag{
Name: "blockCIDR4List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr4.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr4.txt",
},
&cli.StringFlag{
Name: "blockCIDR6List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr6.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr6.txt",
},
&cli.StringSliceFlag{
Name: "blockGeoIP",
Expand Down Expand Up @@ -940,15 +940,15 @@ func main() {
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local file absolute path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.StringFlag{
Name: "blockCIDR4List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr4.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr4.txt",
},
&cli.StringFlag{
Name: "blockCIDR6List",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://txthinking.github.io/bypass/example_cidr6.txt",
Usage: "One CIDR per line, https://, http:// or local file absolute path, like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_cidr6.txt",
},
&cli.StringSliceFlag{
Name: "blockGeoIP",
Expand Down Expand Up @@ -1292,11 +1292,11 @@ func main() {
},
&cli.StringFlag{
Name: "bypassDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.BoolFlag{
Name: "disableA",
Expand Down Expand Up @@ -1679,7 +1679,7 @@ func main() {
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.BoolFlag{
Name: "disableA",
Expand Down Expand Up @@ -1836,7 +1836,7 @@ func main() {
},
&cli.StringFlag{
Name: "blockDomainList",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. https://, http:// or local absolute file path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.BoolFlag{
Name: "disableA",
Expand Down Expand Up @@ -2206,7 +2206,7 @@ func main() {
&cli.StringFlag{
Name: "bypassDomainList",
Aliases: []string{"b"},
Usage: "One domain per line, suffix match mode. http(s):// or local absolute file path. Like: https://txthinking.github.io/bypass/example_domain.txt",
Usage: "One domain per line, suffix match mode. http(s):// or local absolute file path. Like: https://raw.githubusercontent.com/txthinking/brook/master/programmable/list/example_domain.txt",
},
&cli.StringFlag{
Name: "file",
Expand Down
15 changes: 1 addition & 14 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,10 @@ cat gui.md >> ../readme.md
cat resources.md >> ../readme.md

echo '# CLI Documentation' >> ../readme.md
cd ../cli/brook
go build
mv brook ~/.nami/bin/
cd ../../docs
jb '$1`brook mdpage`.split("\n").filter(v=>!v.startsWith("[")).join("\n").replace("```\n```", "```\nbrook [全局参数] 子命令 [子命令参数]\n```").split("\n").forEach(v=> echo(v.startsWith("**") && !v.startsWith("**Usage") ? "- "+v : v))' >> ../readme.md
jb '$1`brook mdpage`.split("\n").filter(v=>!v.startsWith("[")).join("\n").replace("```\n```", "```\nbrook --help\n```").split("\n").forEach(v=> echo(v.startsWith("**") && !v.startsWith("**Usage") ? "- "+v : v))' >> ../readme.md

cat example.md >> ../readme.md
cat diagram.md >> ../readme.md

markdown ../readme.md ./index.html

echo '# Brook' > _.md
echo 'A cross-platform programmable network tool' >> _.md
echo '' >> _.md
echo '# Sponsor' >> _.md
echo '**❤️ [Shiliew - China Optimized Network App](https://www.txthinking.com/shiliew.html)**' >> _.md
mdtoc ../readme.md >> _.md
cat ../readme.md >> _.md
mv _.md ../readme.md

Loading

0 comments on commit a5e14db

Please sign in to comment.