MCPcopy
hub / github.com/cloudflare/cloudflared / getAppURLFromArgs

Function getAppURLFromArgs

cmd/cloudflared/access/cmd.go:368–377  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

366}
367
368func getAppURLFromArgs(c *cli.Context) (*url.URL, error) {
369 var appURLStr string
370 args := c.Args()
371 if args.Len() < 1 {
372 appURLStr = c.String(appURLFlag)
373 } else {
374 appURLStr = args.First()
375 }
376 return parseURL(appURLStr)
377}
378
379// token dumps provided token to stdout
380func generateToken(c *cli.Context) error {

Callers 2

loginFunction · 0.85
generateTokenFunction · 0.85

Calls 3

parseURLFunction · 0.85
LenMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected