Skip to content

Commit

Permalink
Merge pull request #12 from Doer-org/feature/#8_arg_error
Browse files Browse the repository at this point in the history
引数例外処理実装
  • Loading branch information
clcl777 authored Feb 9, 2024
2 parents 43fb2b1 + 1ecdbd0 commit 3711432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var createCmd = &cobra.Command{
Short: "Create Docker image based on your local environment",
Long: `This command creates a docker image based on the local environment,
compresses it, and sends it to the server.`,
Args: cobra.ExactArgs(0),
Run: func(cmd *cobra.Command, args []string) {
docker.CreateImageWithPack()
docker.CompressImageToTar()
Expand Down
1 change: 1 addition & 0 deletions cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var pullCmd = &cobra.Command{
Use: "pull",
Short: "Pull Docker image from the server and run it",
Long: `This command pulls a docker image from the server and runs it.`,
Args: cobra.ExactArgs(0),
Run: func(cmd *cobra.Command, args []string) {
api.ReceiveTarFromServer()
docker.DecompressTarToImage()
Expand Down

0 comments on commit 3711432

Please sign in to comment.