github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/flags/function/p2p.go (about)

     1  package functionFlags
     2  
     3  import "github.com/urfave/cli/v2"
     4  
     5  var (
     6  	Protocol = &cli.StringFlag{
     7  		Name:     "protocol",
     8  		Aliases:  []string{"pr"},
     9  		Category: CategoryP2P,
    10  		Usage:    "Protocol to use for the endpoint, either service name or protocol",
    11  	}
    12  
    13  	Command = &cli.StringFlag{
    14  		Name:     "command",
    15  		Aliases:  []string{"cmd"},
    16  		Category: CategoryP2P,
    17  		Usage:    "Command to execute",
    18  	}
    19  )
    20  
    21  func P2P() []cli.Flag {
    22  	return []cli.Flag{
    23  		Protocol,
    24  		Command,
    25  	}
    26  }