File tree Expand file tree Collapse file tree 7 files changed +35
-7
lines changed Expand file tree Collapse file tree 7 files changed +35
-7
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import (
34
34
35
35
"github.com/containerd/nerdctl/v2/cmd/nerdctl/completion"
36
36
"github.com/containerd/nerdctl/v2/cmd/nerdctl/helpers"
37
+ "github.com/containerd/nerdctl/v2/cmd/nerdctl/namespace"
37
38
"github.com/containerd/nerdctl/v2/cmd/nerdctl/network"
38
39
"github.com/containerd/nerdctl/v2/cmd/nerdctl/volume"
39
40
"github.com/containerd/nerdctl/v2/pkg/config"
@@ -296,7 +297,7 @@ Config file ($NERDCTL_TOML): %s
296
297
network .NewNetworkCommand (),
297
298
volume .NewVolumeCommand (),
298
299
newSystemCommand (),
299
- newNamespaceCommand (),
300
+ namespace . NewNamespaceCommand (),
300
301
newBuilderCommand (),
301
302
// #endregion
302
303
Original file line number Diff line number Diff line change 14
14
limitations under the License.
15
15
*/
16
16
17
- package main
17
+ package namespace
18
18
19
19
import (
20
20
"fmt"
@@ -33,7 +33,7 @@ import (
33
33
"github.com/containerd/nerdctl/v2/pkg/mountutil/volumestore"
34
34
)
35
35
36
- func newNamespaceCommand () * cobra.Command {
36
+ func NewNamespaceCommand () * cobra.Command {
37
37
namespaceCommand := & cobra.Command {
38
38
Annotations : map [string ]string {helpers .Category : helpers .Management },
39
39
Use : "namespace" ,
Original file line number Diff line number Diff line change 14
14
limitations under the License.
15
15
*/
16
16
17
- package main
17
+ package namespace
18
18
19
19
import (
20
20
"github.com/spf13/cobra"
Original file line number Diff line number Diff line change 14
14
limitations under the License.
15
15
*/
16
16
17
- package main
17
+ package namespace
18
18
19
19
import (
20
20
"github.com/spf13/cobra"
Original file line number Diff line number Diff line change 14
14
limitations under the License.
15
15
*/
16
16
17
- package main
17
+ package namespace
18
18
19
19
import (
20
20
"github.com/spf13/cobra"
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright The containerd Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package namespace
18
+
19
+ import (
20
+ "testing"
21
+
22
+ "github.com/containerd/nerdctl/v2/pkg/testutil"
23
+ )
24
+
25
+ func TestMain (m * testing.M ) {
26
+ testutil .M (m )
27
+ }
Original file line number Diff line number Diff line change 14
14
limitations under the License.
15
15
*/
16
16
17
- package main
17
+ package namespace
18
18
19
19
import (
20
20
"github.com/spf13/cobra"
You can’t perform that action at this time.
0 commit comments