Add a "config show" action to display computed borgmatic configuration as YAML or JSON (#1218).

This commit is contained in:
Dan Helfman
2026-02-14 21:30:53 -08:00
parent ad8d074eff
commit d532fc0f88
14 changed files with 292 additions and 52 deletions
@@ -292,6 +292,12 @@ def test_render_configuration_converts_configuration_to_yaml_string():
assert yaml_string == 'foo: bar\n'
def test_render_configuration_strips_ruamel_yaml_end_of_document_marker():
yaml_string = module.render_configuration(33)
assert yaml_string == '33\n'
def test_write_configuration_does_not_raise():
flexmock(os.path).should_receive('exists').and_return(False)
flexmock(os).should_receive('makedirs')