Created
April 17, 2024 14:10
-
-
Save isurfer21/b54f8ff7ba74c522961e4a1b7efcc417 to your computer and use it in GitHub Desktop.
Wrapper to generate UML from TypeScript files using TsUML2 (npm i -g tsuml2) to output an image file with the same filename as the input file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ $# -gt 0 ]] | |
then | |
filename=$1 | |
tsuml2 --glob $filename -m -o $filename.svg | |
else | |
echo "Error: arguments missing!" | |
echo "Syntax: uml <filename>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment