MCPcopy Index your code
hub / github.com/ArchiveNetwork/wgcf-cli

github.com/ArchiveNetwork/wgcf-cli @23.12.19

Chat with this repo
repository ↗ · DeepWiki ↗ · release 23.12.19 ↗ · + Follow
32 symbols 95 edges 15 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

wgcf-cli

Use the standard library to access cloudflare-warp api.

Thanks: @badafans, badafans/warp-reg

Example

  1. Register
❯ wgcf-cli -r
{
    "endpoint": {
        "v4": "162.159.192.7:0",
        "v6": "[2606:4700:d0::a29f:c007]:0"
    },
    "reserved_str": "6nT5",
    "reserved_hex": "0xea74f9",
    "reserved_dec": [
        234,
        116,
        249
    ],
    "private_key": "WIAKvgUlq5fBazhttCvjhEGpu8MmGHcb1H0iHSGlU0Q=",
    "public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
    "addresses": {
        "v4": "172.16.0.2",
        "v6": "2606:4700:110:8d9c:3c4e:2190:59d1:2d3c"
    }
}
  1. Bind a License
❯ wgcf-cli -f wgcf.json -l 9zs5I61a-l9j8m7T5-4pC6k20X
{
    "id": "cd7f4695-e9ef-4bb0-b412-5f4d84919db7",
    "created": "0001-01-01T00:00:00Z",
    "updated": "2023-12-14T12:32:18.689777921Z",
    "premium_data": 0,
    "quota": 0,
    "warp_plus": true,
    "referral_count": 0,
    "referral_renewal_countdown": 0,
    "role": "child"
}

Install

bash -c "$(curl -L wgcf-cli.vercel.app)"

Build

go build -trimpath -ldflags "-s -w -buildid=" -o wgcf-cli ./src/

Extension points exported contracts — how you extend this code

Response (Interface)
(no doc) [2 implementers]
src/struct.go

Core symbols most depended-on inside this repo

readConfigFile
called by 8
src/read.go
request
called by 7
src/request.go
configGenerate
called by 6
src/config.go
register
called by 4
src/register.go
updateConfigFile
called by 4
src/update.go
cancleAccount
called by 3
src/cancle.go
RandStringRunes
called by 2
src/general.go
changeLicense
called by 2
src/license.go

Shape

Function 18
Struct 9
Method 3
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

src/struct.go7 symbols
src/config.go5 symbols
src/command.go3 symbols
src/register.go2 symbols
src/main_test.go2 symbols
src/license.go2 symbols
src/general.go2 symbols
src/bind.go2 symbols
src/update.go1 symbols
src/unbind.go1 symbols
src/request.go1 symbols
src/read.go1 symbols

For agents

$ claude mcp add wgcf-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact