Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 73ec4f3

Browse files
committed
Add package comments, rename import alias
1 parent b7010da commit 73ec4f3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

ecs-cli/modules/cli/local/local_app.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package local implements the subcommands to run ECS task definitions locally
15+
// (See: https://github.com/aws/containers-roadmap/issues/180).
1416
package local
1517

1618
import (
@@ -19,5 +21,8 @@ import (
1921
)
2022

2123
func Create(c *cli.Context) {
22-
fmt.Println("foo")
24+
// 1. read in task def (from file or arn)
25+
// 2. parse task def into go object
26+
// 3. write to docker-compose.local.yml file
27+
fmt.Println("foo") // placeholder
2328
}

ecs-cli/modules/commands/local/local_command.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package localCommand defines the subcommands for local workflows
1415
package localCommand
1516

1617
import (
17-
ecscli "github.com/aws/amazon-ecs-cli/ecs-cli/modules"
18+
app "github.com/aws/amazon-ecs-cli/ecs-cli/modules"
1819
"github.com/aws/amazon-ecs-cli/ecs-cli/modules/cli/local"
1920
"github.com/aws/amazon-ecs-cli/ecs-cli/modules/commands/flags"
2021
"github.com/urfave/cli"
@@ -26,7 +27,7 @@ func LocalCommand() cli.Command {
2627
return cli.Command{
2728
Name: "local",
2829
Usage: "",
29-
Before: ecscli.BeforeApp,
30+
Before: app.BeforeApp,
3031
Flags: flags.OptionalRegionAndProfileFlags(),
3132
Subcommands: []cli.Command{
3233
createCommand(),
@@ -38,7 +39,7 @@ func createCommand() cli.Command {
3839
return cli.Command{
3940
Name: "create",
4041
Usage: "Uses a Task Definition input and converts it to a docker-compose.local.yml file that can be run locally.",
41-
Before: ecscli.BeforeApp,
42+
Before: app.BeforeApp,
4243
Action: local.Create,
4344
Flags: createFlags(),
4445
}

0 commit comments

Comments
 (0)