Merge branch 'main' into feat/richer-delete
This commit is contained in:
commit
2f467e3ddc
7 changed files with 8 additions and 14 deletions
|
|
@ -15,8 +15,7 @@ import (
|
|||
func NewCodeCmd() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "code",
|
||||
Short: "code",
|
||||
Long: "code",
|
||||
Short: "Open a GitHub Codespace in VSCode.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
var codespaceName string
|
||||
if len(args) > 0 {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ import (
|
|||
|
||||
var createCmd = &cobra.Command{
|
||||
Use: "create",
|
||||
Short: "Create",
|
||||
Long: "Create",
|
||||
Short: "Create a GitHub Codespace.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return Create()
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@ import (
|
|||
func NewDeleteCmd() *cobra.Command {
|
||||
deleteCmd := &cobra.Command{
|
||||
Use: "delete CODESPACE_NAME",
|
||||
Short: "delete codespaces",
|
||||
Long: "delete",
|
||||
Short: "Delete a GitHub Codespace.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if len(args) == 0 {
|
||||
return errors.New("A Codespace name is required.")
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ import (
|
|||
func NewListCmd() *cobra.Command {
|
||||
listCmd := &cobra.Command{
|
||||
Use: "list",
|
||||
Short: "list",
|
||||
Long: "list",
|
||||
Short: "List GitHub Codespaces you have on your account.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return List()
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ func main() {
|
|||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "ghcs",
|
||||
Short: "Unofficial GitHub Codespaces CLI",
|
||||
Long: "Unofficial CLI tool to manage and interact with GitHub Codespaces",
|
||||
Short: "Unofficial GitHub Codespaces CLI.",
|
||||
Long: "Unofficial CLI tool to manage and interact with GitHub Codespaces.",
|
||||
Version: "0.6.0",
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ import (
|
|||
func NewPortsCmd() *cobra.Command {
|
||||
portsCmd := &cobra.Command{
|
||||
Use: "ports",
|
||||
Short: "ports",
|
||||
Long: "ports",
|
||||
Short: "Forward ports from a GitHub Codespace.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return Ports()
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ func NewSSHCmd() *cobra.Command {
|
|||
|
||||
sshCmd := &cobra.Command{
|
||||
Use: "ssh",
|
||||
Short: "ssh",
|
||||
Long: "ssh",
|
||||
Short: "SSH into a GitHub Codespace, for use with running tests/editing in vim, etc.",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return SSH(sshProfile, sshServerPort)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue