...

Source file src/edge-infra.dev/pkg/edge/edgeadmin/commands/version/version.go

Documentation: edge-infra.dev/pkg/edge/edgeadmin/commands/version

     1  package version
     2  
     3  import (
     4  	"context"
     5  	"os"
     6  
     7  	"edge-infra.dev/pkg/edge/edgecli"
     8  	"edge-infra.dev/pkg/lib/cli"
     9  	"edge-infra.dev/pkg/lib/cli/command"
    10  	"edge-infra.dev/pkg/lib/runtime/version"
    11  )
    12  
    13  func NewCmd(_ *edgecli.Config) *command.Command {
    14  	return &command.Command{
    15  		ShortUsage: "edgeadmin version",
    16  		ShortHelp:  "display edgeadmin CLI version information",
    17  		Exec: func(_ context.Context, _ []string) error {
    18  			cli.Version(os.Stdout, version.New())
    19  			return nil
    20  		},
    21  	}
    22  }
    23  

View as plain text