@@ -71,11 +71,11 @@ type Lister interface {
71
71
}
72
72
73
73
type ListItem struct {
74
- Name string `json:"name" yaml:"name"`
75
- Runtime string `json:"runtime" yaml:"runtime"`
76
- URL string `json:"url" yaml:"url"`
77
- KService string `json:"kservice" yaml:"kservice"`
78
- Ready string `json:"ready" yaml:"ready"`
74
+ Name string `json:"name" yaml:"name"`
75
+ Runtime string `json:"runtime" yaml:"runtime"`
76
+ URL string `json:"url" yaml:"url"`
77
+ KService string `json:"kservice" yaml:"kservice"`
78
+ Ready string `json:"ready" yaml:"ready"`
79
79
}
80
80
81
81
// ProgressListener is notified of task progress.
@@ -383,9 +383,8 @@ func (c *Client) Initialize(cfg Function) (err error) {
383
383
// Build the Function at path. Errors if the Function is either unloadable or does
384
384
// not contain a populated Image.
385
385
func (c * Client ) Build (path string ) (err error ) {
386
- if c .verbose {
387
- fmt .Println ("Building Function image:" )
388
- }
386
+
387
+ fmt .Println ("Building function image" )
389
388
390
389
f , err := NewFunction (path )
391
390
if err != nil {
@@ -409,9 +408,8 @@ func (c *Client) Build(path string) (err error) {
409
408
410
409
// TODO: create a statu structure and return it here for optional
411
410
// use by the cli for user echo (rather than rely on verbose mode here)
412
- if c .verbose {
413
- fmt .Printf ("Function image has been built, image: %v\n " , f .Image )
414
- }
411
+ fmt .Printf ("Function image has been built, image: %v\n " , f .Image )
412
+
415
413
return
416
414
}
417
415
@@ -429,9 +427,7 @@ func (c *Client) Deploy(path string) (err error) {
429
427
}
430
428
431
429
// Push the image for the named service to the configured registry
432
- if c .verbose {
433
- fmt .Println ("\n Pushing Function image to the registry:" )
434
- }
430
+ fmt .Println ("Pushing function image to the registry" )
435
431
imageDigest , err := c .pusher .Push (f )
436
432
if err != nil {
437
433
return
@@ -444,9 +440,7 @@ func (c *Client) Deploy(path string) (err error) {
444
440
}
445
441
446
442
// Deploy a new or Update the previously-deployed Function
447
- if c .verbose {
448
- fmt .Println ("\n Deploying Function to cluster:" )
449
- }
443
+ fmt .Println ("Deploying function to the cluster" )
450
444
return c .deployer .Deploy (f )
451
445
}
452
446
0 commit comments