Rename the cmd pkg to codespace

This commit is contained in:
Jose Garcia 2021-10-04 14:16:04 -04:00
parent 93cea6d370
commit d02876e6ea
12 changed files with 15 additions and 15 deletions

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"context"

View file

@ -1,6 +1,6 @@
package ghcs
package codespace
// This file defines functions common to the entire ghcs command set.
// This file defines functions common to the entire codespace command set.
import (
"context"

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"context"

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"context"

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"bytes"

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"context"

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"context"

View file

@ -1,7 +1,7 @@
// Code generated by moq; DO NOT EDIT.
// github.com/matryer/moq
package ghcs
package codespace
import (
"context"

View file

@ -1,7 +1,7 @@
// Code generated by moq; DO NOT EDIT.
// github.com/matryer/moq
package ghcs
package codespace
import (
"sync"

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"bytes"
@ -79,7 +79,7 @@ func (a *App) ListPorts(ctx context.Context, codespaceName string, asJSON bool)
devContainerResult := <-devContainerCh
if devContainerResult.err != nil {
// Warn about failure to read the devcontainer file. Not a ghcs command error.
// Warn about failure to read the devcontainer file. Not a codespace command error.
_, _ = a.logger.Errorf("Failed to get port names: %v\n", devContainerResult.err.Error())
}

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"github.com/spf13/cobra"
@ -8,7 +8,7 @@ var version = "DEV" // Replaced in the release build process (by GoReleaser or H
func NewRootCmd(app *App) *cobra.Command {
root := &cobra.Command{
Use: "ghcs",
Use: "codespace",
SilenceUsage: true, // don't print usage message after each error (see #80)
SilenceErrors: false, // print errors automatically so that main need not
Long: `Unofficial CLI tool to manage GitHub Codespaces.

View file

@ -1,4 +1,4 @@
package ghcs
package codespace
import (
"context"