Skip to content

Commit

Permalink
renamed start to run and removed unecessary packages
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed May 27, 2021
1 parent 2bc9867 commit bc5ad6d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 45 deletions.
5 changes: 0 additions & 5 deletions src/cmd/internal/internal.go

This file was deleted.

6 changes: 3 additions & 3 deletions src/cmd/start/start.go → src/cmd/run/start.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package start
package run

import (
"context"
Expand All @@ -17,8 +17,8 @@ func New() *cobra.Command {
options := Options{Remove: new(bool)}

cmd := &cobra.Command{
Use: "start",
Short: "Starts container",
Use: "run",
Short: "runs container",
Args: cobra.RangeArgs(0, 1),
RunE: func(cmd *cobra.Command, args []string) error {
name := ""
Expand Down
35 changes: 0 additions & 35 deletions src/internal/shell/shell.go

This file was deleted.

4 changes: 2 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
getcontext "github.com/silphid/yey/src/cmd/get/context"
getcontexts "github.com/silphid/yey/src/cmd/get/contexts"

"github.com/silphid/yey/src/cmd/start"
"github.com/silphid/yey/src/cmd/run"
"github.com/silphid/yey/src/cmd/versioning"
)

Expand All @@ -29,7 +29,7 @@ func main() {
}()

rootCmd := cmd.NewRoot()
rootCmd.AddCommand(start.New())
rootCmd.AddCommand(run.New())
rootCmd.AddCommand(versioning.New(version))

getCmd := get.New()
Expand Down

0 comments on commit bc5ad6d

Please sign in to comment.