Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/ContainerCommands/Container/ContainerExport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
import ArgumentParser
import ContainerAPIClient
import ContainerizationError
import ContainerizationOS
import Foundation
import SystemPackage
import TerminalProgress

extension Application {
Expand All @@ -35,9 +37,7 @@ extension Application {

@Option(
name: .shortAndLong, help: "Pathname for the saved container filesystem (defaults to stdout)", completion: .file(),
transform: { str in
URL(fileURLWithPath: str, relativeTo: .currentDirectory()).absoluteURL.path(percentEncoded: false)
})
transform: { str in FilePathOps.absolutePath(FilePath(str)).string })
var output: String?

@Argument(help: "container ID")
Expand Down