This repository was archived by the owner on Nov 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 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).
1416package local
1517
1618import (
@@ -19,5 +21,8 @@ import (
1921)
2022
2123func 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}
Original file line number Diff line number Diff line change 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
1415package localCommand
1516
1617import (
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 }
You can’t perform that action at this time.
0 commit comments