MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / runCommunityScriptsPlan

Function runCommunityScriptsPlan

internal/cli/community_scripts.go:215–230  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

213}
214
215func runCommunityScriptsPlan(cmd *cobra.Command, args []string) error {
216 plan, err := buildCommunityScriptPlan(cmd, args[0])
217 if err != nil {
218 return printError(err)
219 }
220 if plan == nil {
221 return nil
222 }
223
224 if getOutputFormat(cmd) == outputTable {
225 printCommunityScriptPlanTable(*plan)
226 return nil
227 }
228
229 return printJSON(plan)
230}
231
232func runCommunityScriptsInstall(cmd *cobra.Command, args []string) error {
233 session, err := initCLISession(cmd)

Callers

nothing calls this directly

Calls 5

buildCommunityScriptPlanFunction · 0.85
printErrorFunction · 0.85
getOutputFormatFunction · 0.85
printJSONFunction · 0.85

Tested by

no test coverage detected