Skip to content

Commit 18a4362

Browse files
committed
Unexport on Delete
Signed-off-by: Hadi Chokr <[email protected]>
1 parent 8fb33ea commit 18a4362

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

src/cmd/export.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright © 2025 Hadi Chokr <[email protected]>
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+
117
package cmd
218

319
import (

src/cmd/rm.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ func rm(cmd *cobra.Command, args []string) error {
7878
fmt.Fprintf(os.Stderr, "Error: %s\n", err)
7979
continue
8080
}
81+
82+
// Unexport Binaries and Applications from this Container from the Host
83+
UnexportAll(container.Name())
8184
}
8285
} else {
8386
if len(args) == 0 {
@@ -105,6 +108,9 @@ func rm(cmd *cobra.Command, args []string) error {
105108
fmt.Fprintf(os.Stderr, "Error: %s\n", err)
106109
continue
107110
}
111+
112+
// Unexport Binaries and Applications from this Container from the Host
113+
UnexportAll(container)
108114
}
109115
}
110116

src/cmd/unexport.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright © 2025 Hadi Chokr <[email protected]>
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+
117
package cmd
218

319
import (

0 commit comments

Comments
 (0)