Skip to content

Commit

Permalink
add last executed to ql output
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenglund committed Jan 16, 2024
1 parent 082b5e3 commit b58644d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions format/query_lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ var QueryLambdaDefaultSelector = DefaultSelector{
NewFieldSelection("Workspace", "workspace"),
NewFieldSelection("Name", "name"),
NewFieldSelection("State", "latest_version", "state"),
{
ColumnName: "Last Executed",
Path: []PathElem{
{FieldName: "latest_version"},
{FieldName: "stats"},
{FieldName: "last_executed"},
},
FieldFormatter: TimeSinceFormatter{}, // TODO this doesn't display correctly
},
{
ColumnName: "Last Updated",
Path: []PathElem{{FieldName: "last_updated"}},
Expand Down Expand Up @@ -114,6 +123,14 @@ var QueryLambdaVersionDefaultSelector = DefaultSelector{
NewFieldSelection("Name", "name"),
NewFieldSelection("Version", "version"),
NewFieldSelection("State", "state"),
{
ColumnName: "Last Executed",
Path: []PathElem{
{FieldName: "stats"},
{FieldName: "last_executed"},
},
FieldFormatter: TimeSinceFormatter{}, // TODO this doesn't display correctly
},
},
Wide: []FieldSelection{
NewFieldSelection("Workspace", "workspace"),
Expand Down

0 comments on commit b58644d

Please sign in to comment.