MCPcopy
hub / github.com/google/seesaw / configStatus

Function configStatus

cli/show.go:164–178  ·  view source on GitHub ↗
(cli *SeesawCLI, args []string)

Source from the content-addressed store, hash-verified

162}
163
164func configStatus(cli *SeesawCLI, args []string) error {
165 cs, err := cli.seesaw.ConfigStatus()
166 if err != nil {
167 return fmt.Errorf("Failed to get config status: %v", err)
168 }
169 printHdr("Config Status")
170 printVal("Last Update", cs.LastUpdate.Format(timeStamp))
171 fmt.Println()
172 fmt.Println(" Attributes:")
173 for _, attr := range cs.Attributes {
174 printVal(label(attr.Name, 4, 18), attr.Value)
175 }
176
177 return nil
178}
179
180func showNode(cli *SeesawCLI, args []string) error {
181 if len(args) > 1 {

Callers

nothing calls this directly

Calls 4

printHdrFunction · 0.85
printValFunction · 0.85
labelFunction · 0.85
ConfigStatusMethod · 0.65

Tested by

no test coverage detected