MCPcopy Create free account
hub / github.com/celer-pkg/celer / createPort

Method createPort

cmds/cmd_create.go:78–85  ·  view source on GitHub ↗
(nameVersion string)

Source from the content-addressed store, hash-verified

76}
77
78func (c *createCmd) createPort(nameVersion string) error {
79 if err := c.celer.CreatePort(nameVersion); err != nil {
80 return color.PrintError(err, "%s could not be created.", nameVersion)
81 }
82
83 color.PrintSuccess("%s is created, please proceed with its refinement.", nameVersion)
84 return nil
85}
86
87func (c *createCmd) doCreate(cmd *cobra.Command) error {
88 // Check that exactly one flag is provided.

Callers 1

doCreateMethod · 0.95

Calls 3

PrintErrorFunction · 0.92
PrintSuccessFunction · 0.92
CreatePortMethod · 0.80

Tested by

no test coverage detected