Skip to content

Commit

Permalink
fix: cliのコマンドを移動。goreleaserでビルドできなかったので
Browse files Browse the repository at this point in the history
  • Loading branch information
keroxp committed Sep 11, 2018
1 parent e8829c3 commit b96b5cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
builds:
- binary: cage
main: ./cli/cage/*.go
main: ./cli/cage/main.go
goos:
- darwin
- linux
Expand Down
14 changes: 7 additions & 7 deletions cli/cage/rollout.go → cli/cage/commands/rollout.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package main
package commands

import (
"github.com/urfave/cli"
"github.com/loilo-inc/canarycage"
"encoding/json"
"fmt"
"os"
"io/ioutil"
"github.com/aws/aws-sdk-go/aws"
"github.com/apex/log"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ecs"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/aws/aws-sdk-go/service/ecs"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/loilo-inc/canarycage"
"github.com/urfave/cli"
"io/ioutil"
"os"
)

func RollOutCommand() cli.Command {
Expand Down
2 changes: 1 addition & 1 deletion cli/cage/up.go → cli/cage/commands/up.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package commands

import (
"encoding/json"
Expand Down
5 changes: 3 additions & 2 deletions cli/cage/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/loilo-inc/canarycage/cli/cage/commands"
"github.com/urfave/cli"
"log"
"os"
Expand All @@ -21,8 +22,8 @@ func main() {
app.Version = "1.2.1"
app.Description = "A gradual roll-out deployment tool for AWS ECS"
app.Commands = cli.Commands{
RollOutCommand(),
UpCommand(ses),
commands.RollOutCommand(),
commands.UpCommand(ses),
}
app.Run(os.Args)
}

0 comments on commit b96b5cf

Please sign in to comment.