MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / NewClient

Function NewClient

internal/tools/sofya/sofya.go:28–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func NewClient() (ret *Client) {
29
30 label := "Sofya"
31
32 ret = &Client{
33 PluginBase: &plugins.PluginBase{
34 Name: i18n.T("sofya_label"),
35 SetupDescription: i18n.T("sofya_setup_description") + " " + i18n.T("optional_marker"),
36 EnvNamePrefix: plugins.BuildEnvVariablePrefix(label),
37 },
38 }
39
40 ret.ApiKey = ret.AddSetupQuestion("API Key", false)
41
42 return
43}
44
45// IsConfigured reports whether an API key is set; the key is optional during setup.
46func (c *Client) IsConfigured() bool {

Calls 3

TFunction · 0.92
BuildEnvVariablePrefixFunction · 0.92
AddSetupQuestionMethod · 0.80