Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating other output formats #11

Closed
jayvdb opened this issue Aug 23, 2024 · 1 comment · Fixed by #16
Closed

Generating other output formats #11

jayvdb opened this issue Aug 23, 2024 · 1 comment · Fixed by #16

Comments

@jayvdb
Copy link

jayvdb commented Aug 23, 2024

The table on https://plantuml.com/command-line shows a lot of output formats.

It would be nice to be able to specify the desired format. I only need svg, which works when I do

diff --git a/src/plantuml.rs b/src/plantuml.rs
index 587d5c2..3218889 100644
--- a/src/plantuml.rs
+++ b/src/plantuml.rs
@@ -35,6 +35,7 @@ impl PlantUML {
             .arg("-jar")
             .arg(&self.plantuml_jar)
             .arg(source)
+            .arg("-svg")
             .output()
             .map_err(|e| anyhow::Error::new(e).context(format!("unable to render {}", source)))?;
         io::stdout().write_all(&output.stdout).unwrap();
tmorin added a commit that referenced this issue Sep 20, 2024
@jayvdb
Copy link
Author

jayvdb commented Sep 21, 2024

Thanks @tmorin , your proposed solution looks very useful, solving this and other similar problems.

tmorin added a commit that referenced this issue Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
@tmorin tmorin closed this as completed in bc12d16 Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
tmorin added a commit that referenced this issue Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant