From 598936166c6fd4a6999e4d3e8d074447e122aea7 Mon Sep 17 00:00:00 2001 From: Mrudul Harwani Date: Wed, 4 Jan 2023 12:51:27 -0800 Subject: [PATCH] feat: add `finch cp` command (#135) Issue #, if available: #82 *Description of changes:* Added `finch cp` command and its e2e tests (runfinch/common-tests#11). *Testing done:* Unit tests and E2E tests. - [X] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Mrudul Harwani --- cmd/finch/nerdctl.go | 1 + e2e/e2e_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/finch/nerdctl.go b/cmd/finch/nerdctl.go index 3242c0b55..86f437bbf 100644 --- a/cmd/finch/nerdctl.go +++ b/cmd/finch/nerdctl.go @@ -129,6 +129,7 @@ var nerdctlCmds = map[string]string{ "compose": "Compose", "container": "Manage containers", "create": "Create a new container", + "cp": "Copy files/folders between a running container and the local filesystem", "events": "Get real time events from the server", "exec": "Run a command in a running container", "history": "Show the history of an image", diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 9fe9b1f29..60e5a3e46 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -59,6 +59,7 @@ func TestE2e(t *testing.T) { tests.Run(&tests.RunOption{BaseOpt: o, CGMode: tests.Unified}) tests.Start(o) tests.Stop(o) + tests.Cp(o) tests.Tag(o) tests.Save(o) tests.Load(o)