@@ -830,7 +830,7 @@ func deployAgent(ctx context.Context, cmd *cli.Command) error {
830830 agentDeployment := ""
831831 if cmd .IsSet ("deployment" ) {
832832 agentDeployment = cmd .String ("deployment" )
833- fmt . Printf ("Using deployment [%s]\n " , util .Accented (agentDeployment ))
833+ out . Statusf ("Using deployment [%s]" , util .Accented (agentDeployment ))
834834 }
835835
836836 excludeFiles := []string {fmt .Sprintf ("**/%s" , config .LiveKitTOMLFile )}
@@ -1344,7 +1344,7 @@ func listAgentSecrets(ctx context.Context, cmd *cli.Command) error {
13441344 if slices .Contains (ignoredSecrets , secret .Name ) {
13451345 continue
13461346 }
1347- table .Row (secret .Name , secret .CreatedAt .AsTime (). Format ( time . RFC3339 ), secret .UpdatedAt .AsTime (). Format ( time . RFC3339 ))
1347+ table .Row (secret .Name , formatTime ( secret .CreatedAt .AsTime ()), formatTime ( secret .UpdatedAt .AsTime ()))
13481348 }
13491349
13501350 out .Result (table )
@@ -1463,7 +1463,7 @@ func selectAgent(ctx context.Context, cmd *cli.Command, excludeEmptyVersion bool
14631463 if deployedAt := agent .DeployedAt .AsTime (); deployedAt .IsZero () {
14641464 deployedStr = "never deployed"
14651465 } else {
1466- deployedStr = "deployed " + deployedAt . Format ( time . RFC3339 )
1466+ deployedStr = "deployed " + formatTime ( deployedAt )
14671467 }
14681468 name := agent .AgentId + " " + util .Dimmed (deployedStr )
14691469 agentNames = append (agentNames , huh.Option [string ]{Key : name , Value : agent .AgentId })
@@ -1776,10 +1776,3 @@ func generateAgentDockerfile(ctx context.Context, cmd *cli.Command) error {
17761776
17771777 return nil
17781778}
1779-
1780- func formatTime (t time.Time ) string {
1781- if t .IsZero () {
1782- return "---"
1783- }
1784- return t .Format (time .RFC3339 )
1785- }
0 commit comments