Skip to content

Commit

Permalink
package describe: improve output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb26 committed Nov 11, 2024
1 parent d6c3aeb commit 3dd5b98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ func pkgDescribeMain(args []string) {
os.Exit(1)
}

fmt.Printf("\nProject:%v PackageId:%v State:%v Size:%v UploadTime:%v\n",
pkgDesc.ProjId, pkgDesc.PackageId, pkgDesc.State, pkgDesc.PackageSize,
pkgDesc.UploadTime)
fmt.Printf("\nPackageId %v:\n\tProjectId: %v\n\tState: %v\n\tSize: %v MiB\n\tUploadTime: %v\n",
pkgDesc.PackageId, pkgDesc.ProjId, pkgDesc.State,
pkgDesc.PackageSize/1024/1024, unixTime2Utc(pkgDesc.UploadTime))

switch pkgDesc.State {
case pb.PackageState_UPLOADING:
Expand Down

0 comments on commit 3dd5b98

Please sign in to comment.