Skip to content

Commit

Permalink
deploy describe: show human friendly timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb26 committed Nov 11, 2024
1 parent f650214 commit d6c3aeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ func deployDescribeMain(args []string) {
os.Exit(1)
}

fmt.Printf("\nDeployment Id:%v\n\tProject Id:%v\n\tPackage Id:%v\n\tEnvironment Id:%v\n\tType:%v\n\tInitiator:%v\n\tState:%v\n\tDetail:%v\n\tCreate Time:%v\n\tValidation Start Time:%v\n\tBuild Start Time:%v\n\tDeploy Start Time:%v\n\tCompletion Time:%v\n",
fmt.Printf("\nDeployment Id:%v\n\tProject Id:%v\n\tPackage Id:%v\n\tEnvironment Id:%v\n\tType:%v\n\tInitiator:%v\n\tState:%v\n\tDetail:%v\n\tCreate Time: %v\n\tValidation Start Time: %v\n\tBuild Start Time: %v\n\tDeploy Start Time: %v\n\tCompletion Time: %v\n",
deployDesc.Id, deployDesc.Header.ProjId, deployDesc.Header.PkgId,
deployDesc.Header.EnvId, deployDesc.Header.Type,
deployDesc.Header.Initiator, deployDesc.State, deployDesc.StateDetail,
deployDesc.CreateTime, deployDesc.ValidationStartTime,
deployDesc.BuildStartTime, deployDesc.DeployStartTime,
deployDesc.EndTime)
unixTime2Utc(deployDesc.CreateTime), unixTime2Utc(deployDesc.ValidationStartTime),
unixTime2Utc(deployDesc.BuildStartTime), unixTime2Utc(deployDesc.DeployStartTime),
unixTime2Utc(deployDesc.EndTime))

switch deployDesc.State {
case pb.DeploymentState_CREATED:
Expand Down

0 comments on commit d6c3aeb

Please sign in to comment.