MCPcopy Index your code
hub / github.com/dnote/dnote / getGreeting

Function getGreeting

pkg/cli/cmd/login/login.go:135–144  ·  view source on GitHub ↗
(ctx context.DnoteCtx)

Source from the content-addressed store, hash-verified

133}
134
135func getGreeting(ctx context.DnoteCtx) string {
136 base := "Welcome to Dnote"
137
138 serverURL := getServerDisplayURL(ctx)
139 if serverURL == "" {
140 return fmt.Sprintf("%s\n", base)
141 }
142
143 return fmt.Sprintf("%s (%s)\n", base, serverURL)
144}
145
146func newRun(ctx context.DnoteCtx) infra.RunEFunc {
147 return func(cmd *cobra.Command, args []string) error {

Callers 1

newRunFunction · 0.85

Calls 1

getServerDisplayURLFunction · 0.85

Tested by

no test coverage detected