From 8c4ff2ab4b338feb9a49c96e4bdcd184ad2e314b Mon Sep 17 00:00:00 2001
From: sindrel <35308882+sindrel@users.noreply.github.com>
Date: Wed, 4 Oct 2023 23:02:00 +0200
Subject: [PATCH] chore: Update readme
---
README.md | 82 +++++++++++++++++++++++++-------------------
assets/workflow.png | Bin 0 -> 10604 bytes
2 files changed, 47 insertions(+), 35 deletions(-)
create mode 100644 assets/workflow.png
diff --git a/README.md b/README.md
index fc7c746..a772107 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
-# Excalidraw Converter
-**A command line tool for porting Excalidraw diagrams to Gliffy and draw.io.**
+
+
+# Excalidraw Converter
+**A command line tool for porting Excalidraw diagrams to Gliffy and draw.io.**
[Excalidraw](https://excalidraw.com/) is great for sketching diagrams as part of a design process, but chances are that you have to redo those sketches for documentation. This tool is made to bridge those tasks.
@@ -23,74 +25,61 @@ If you're a Linux or MacOS user, move it to your local bin folder to make it ava
### How to convert diagrams
First save your Excalidraw diagram to a file.
-Then, to do a conversion, simply execute the binary by specifying the `gliffy` command, the path to your Excalidraw save file, and the path to where you want your converted file to be saved.
+Then, to do a conversion, simply execute the binary by specifying the `gliffy` command, and the path to your Excalidraw file.
+
+```sh
+exconv gliffy -i ~/Downloads/my-diagram.excalidraw
+```
MacOS example
- ```
- $ exconv gliffy -i ~/Downloads/my-diagram.excalidraw -o /tmp/my-ported-diagram.gliffy
+ ```sh
+ $ exconv gliffy -i ~/Downloads/my-diagram.excalidraw
Parsing input file: ~/Downloads/my-diagram.excalidraw
Adding object: com.gliffy.shape.basic.basic_v1.default.rectangle
Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.rectangle
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
+ [...]
Adding object: com.gliffy.shape.basic.basic_v1.default.text
Adding object: com.gliffy.shape.basic.basic_v1.default.line
- Converted diagram saved to file: /tmp/my-ported-diagram.gliffy
+ Converted diagram saved to file: my-diagram.gliffy
```
Linux example
- ```
- $ ./exconv gliffy -i ~/Downloads/my-diagram.excalidraw -o /tmp/my-ported-diagram.gliffy
+ ```sh
+ $ ./exconv gliffy -i ~/Downloads/my-diagram.excalidraw
Parsing input file: ~/Downloads/my-diagram.excalidraw
Adding object: com.gliffy.shape.basic.basic_v1.default.rectangle
Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.rectangle
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
+ [...]
Adding object: com.gliffy.shape.basic.basic_v1.default.text
Adding object: com.gliffy.shape.basic.basic_v1.default.line
- Converted diagram saved to file: /tmp/my-ported-diagram.gliffy
+ Converted diagram saved to file: my-diagram.gliffy
```
Windows example
- ```
- C:\> exconv.exe gliffy -i C:\Downloads\my-diagram.excalidraw -o C:\tmp\my-ported-diagram.gliffy
+ ```sh
+ C:\> exconv.exe gliffy -i C:\Downloads\my-diagram.excalidraw
Parsing input file: C:\Downloads\my-diagram.excalidraw
Adding object: com.gliffy.shape.basic.basic_v1.default.rectangle
Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
- Adding object: com.gliffy.shape.basic.basic_v1.default.rectangle
- Adding object: com.gliffy.shape.basic.basic_v1.default.text
+ [...]
Adding object: com.gliffy.shape.basic.basic_v1.default.text
Adding object: com.gliffy.shape.basic.basic_v1.default.line
- Converted diagram saved to file: C:\tmp\my-ported-diagram.gliffy
+ Converted diagram saved to file: my-diagram.gliffy
```
-
+
+### Importing
![Animation demonstrating use](exconv.gif "Animation")
-After converting your diagram(s), import them into Gliffy using the standard Import dialog.
+After converting your diagram(s), import them into Gliffy (or draw.io) using the standard Import dialog.
## Commands
```sh
@@ -104,6 +93,26 @@ Flags:
-h, --help help for exconv
```
+### Gliffy conversion options
+When an output file path is not provided, it will be determined
+automatically based on the filename of the input file. If you provide the
+input file path `./subfolder/your_file.excalidraw`, the default output file path will be `./your_file.gliffy`.
+
+This can be overridden using the `-o` flag.
+
+```sh
+Example:
+ exconv gliffy -i your_file.excalidraw
+
+Usage:
+ exconv gliffy [flags]
+
+Flags:
+ -h, --help help for gliffy
+ -i, --input string input file path
+ -o, --output string output file path (default "your_file.gliffy")
+```
+
## Features
All fixed shapes and most styling and text options are supported.
@@ -141,6 +150,9 @@ In draw.io, you can import a diagram by simply opening the file from your device
## Contributing
See something you'd like to improve? Feel free to add a pull request. If it's a major change, it's probably best to describe it in an [issue](https://github.com/sindrel/excalidraw-converter/issues/new) first.
+## Attributions
+* Workflow icons created by Freepik - Flaticon
+
## Development
Instructions
diff --git a/assets/workflow.png b/assets/workflow.png
new file mode 100644
index 0000000000000000000000000000000000000000..3fd89c593ab2e77f14f3a236b45034cd86eac955
GIT binary patch
literal 10604
zcmbt)2UJtr*6!L#fY1yPlwL#>D@9a5ki;X!3aBW0Py&J?76KvyQnD2UREkGD;t>Qq
z7VH#{C`A(iiH%}GL`uM*AYww05=hzq+R^*&|GziJePg`G7>tCq=9=@H-<)f%wddx9
zx2K1unt>VsKy&pf*Np%W;8y}5E5nbGn0J%#gB1DOY9BKEi6;lA!M|0*S8a=g@~!wU
z^4px;7&xeZ$Z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