@Override
    public Integer doCall() throws Exception {
        String jv = VersionHelper.getJBangVersion();
        if (jv != null) {
            printer().println("JBang version: " + jv);
        }

        CamelCatalog catalog = new DefaultCamelCatalog();
        String v = catalog.getCatalogVersion();
        printer().println("Camel JBang version: " + v);

        CommandLineHelper.loadProperties(properties -> {
            String uv = properties.getProperty("camel-version");
            String kv = properties.getProperty("kamelets-version");
            String repos = properties.getProperty("repos");
            String runtime = properties.getProperty("runtime");
            if (uv != null || repos != null || runtime != null) {
                printer().println("User configuration:");
                if (uv != null) {
                    printer().println("    camel-version = " + uv);
                }
                if (kv != null) {
                    printer().println("    kamelets-version = " + kv);
                }
                if (runtime != null) {
                    printer().println("    runtime = " + runtime);
                }
                if (repos != null) {
                    printer().println("    repos = " + repos);
                }
            }
        });

        return 0;
    }
@Test
    public void shouldPrintUserProperties() throws Exception {
        UserConfigHelper.createUserConfig("""
                camel-version=latest
                foo=bar
                kamelets-version=greatest
                """);
        createJBangVersionFile("0.101");

        VersionGet command = createCommand();
        command.doCall();

        List<String> lines = printer.getLines();
        Assertions.assertEquals(5, lines.size());
        Assertions.assertTrue(lines.get(0).startsWith("JBang version:"));
        Assertions.assertTrue(lines.get(1).startsWith("Camel JBang version:"));
        Assertions.assertEquals("User configuration:", lines.get(2));
        Assertions.assertEquals("camel-version = latest", lines.get(3));
        Assertions.assertEquals("kamelets-version = greatest", lines.get(4));
    }