mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-24 04:18:52 +00:00
Move MESSAGE to the end of get subcommand output
Message content could be long compared to other fields. Moving it to the end helps improve the visibility of the other fields. Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
059751b3c9
commit
21f0d5d82c
11 changed files with 22 additions and 22 deletions
|
|
@ -86,11 +86,11 @@ func (a *gitRepositoryListAdapter) summariseItem(i int, includeNamespace bool, i
|
|||
msg = shortenCommitSha(msg)
|
||||
}
|
||||
return append(nameColumns(&item, includeNamespace, includeKind),
|
||||
status, msg, revision, strings.Title(strconv.FormatBool(item.Spec.Suspend)))
|
||||
revision, strings.Title(strconv.FormatBool(item.Spec.Suspend)), status, msg)
|
||||
}
|
||||
|
||||
func (a gitRepositoryListAdapter) headers(includeNamespace bool) []string {
|
||||
headers := []string{"Name", "Ready", "Message", "Revision", "Suspended"}
|
||||
headers := []string{"Name", "Revision", "Suspended", "Ready", "Message"}
|
||||
if includeNamespace {
|
||||
headers = append([]string{"Namespace"}, headers...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue