mirror of
https://github.com/kopia/kopia.git
synced 2026-10-26 16:18:53 -04:00
feat(cli): improved formatting of 'policy show' outputs (#1767)
This commit is contained in:
1 parent
c9d9bf2de2
commit
9d63e56bb9
5 files changed
+318
-169
No files matched your search
@@ -165,8 +165,12 @@ func (c *commandRepositoryCreate) populateRepository(ctx context.Context, passwo
|
||||
return errors.Wrap(err, "unable to set global policy")
|
||||
}
|
||||
|
||||
printRetentionPolicy(&c.out, policy.DefaultPolicy, &policy.Definition{})
|
||||
printCompressionPolicy(&c.out, policy.DefaultPolicy, &policy.Definition{})
|
||||
var rows []policyTableRow
|
||||
|
||||
rows = appendRetentionPolicyRows(rows, policy.DefaultPolicy, &policy.Definition{})
|
||||
rows = appendCompressionPolicyRows(rows, policy.DefaultPolicy, &policy.Definition{})
|
||||
|
||||
c.out.printStdout("%v\n", alignedPolicyTableRows(rows))
|
||||
|
||||
c.out.printStderr("\nTo find more information about default policy run 'kopia policy get'.\nTo change the policy use 'kopia policy set' command.\n")
|
||||
|
||||
|
||||
Reference in new issue
Block a user