MCPcopy Index your code
hub / github.com/drone/envsubst

github.com/drone/envsubst @v1.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.3 ↗ · + Follow
100 symbols 219 edges 12 files 60 documented · 60% 9 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

envsubst

envsubst is a Go package for expanding variables in a string using ${var} syntax. Includes support for bash string replacement functions.

Documentation

Documentation can be found on GoDoc.

Supported Functions

  • ${var^}
  • ${var^^}
  • ${var,}
  • ${var,,}
  • ${var:position}
  • ${var:position:length}
  • ${var#substring}
  • ${var##substring}
  • ${var%substring}
  • ${var%%substring}
  • ${var/substring/replacement}
  • ${var//substring/replacement}
  • ${var/#substring/replacement}
  • ${var/%substring/replacement}
  • ${#var}
  • ${var=default}
  • ${var:=default}
  • ${var:-default}

Unsupported Functions

  • ${var-default}
  • ${var+default}
  • ${var:?default}
  • ${var:+default}

Extension points exported contracts — how you extend this code

Node (Interface)
Node is an element in the parse tree. [3 implementers]
parse/node.go

Core symbols most depended-on inside this repo

scan
called by 14
parse/scan.go
string
called by 11
parse/scan.go
peek
called by 8
parse/scan.go
toSubstr
called by 7
funcs.go
unread
called by 7
parse/scan.go
consumeRbrack
called by 7
parse/parse.go
reverse
called by 6
funcs.go
parseParam
called by 6
parse/parse.go

Shape

Function 57
Method 32
Struct 7
FuncType 2
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

parse/scan.go30 symbols
funcs.go19 symbols
parse/parse.go14 symbols
parse/node.go11 symbols
template.go10 symbols
funcs_test.go7 symbols
path/match.go4 symbols
eval.go2 symbols
parse/parse_test.go1 symbols
eval_test.go1 symbols
cmd/envsubst/main.go1 symbols

For agents

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

⬇ download graph artifact