diff --git a/cmd/dx-download-agent/dx-download-agent.go b/cmd/dx-download-agent/dx-download-agent.go index e237e41..4b1cb4b 100644 --- a/cmd/dx-download-agent/dx-download-agent.go +++ b/cmd/dx-download-agent/dx-download-agent.go @@ -4,8 +4,10 @@ import ( "context" "flag" "fmt" + "io" "log" "os" + "strings" // The dxda package should contain all core functionality "github.com/dnanexus/dxda" @@ -21,7 +23,10 @@ type downloadCmd struct { var err error +const rootDescription = "CLI tool to manage the download of files from the DNAnexus Platform" const downloadUsage = "dx-download-agent download [-num_threads=N] " +const inspectSynopsis = "Inspect files downloaded in a manifest and validate their integrity" +const versionUsage = "dx-download-agent version" func (*downloadCmd) Name() string { return "download" } func (*downloadCmd) Synopsis() string { return "Download files in a manifest" } @@ -108,7 +113,7 @@ type progressCmd struct { } func (*progressCmd) Name() string { return "progress" } -func (*progressCmd) Synopsis() string { return "show current download progress" } +func (*progressCmd) Synopsis() string { return "Show current download progress" } const progressUsage = "dx-download-agent progress " @@ -150,13 +155,13 @@ const inspectUsage = "dx-download-agent inspect [-num_threads=N]