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

Feature Request - diagrams.programming.language [COBOL, FORTRAN] #293

Closed
gmirsky opened this issue Sep 23, 2020 · 5 comments
Closed

Feature Request - diagrams.programming.language [COBOL, FORTRAN] #293

gmirsky opened this issue Sep 23, 2020 · 5 comments
Labels
area/provider/programming Programming provider comp/node Issue of node component kind/feat/icon Icon request

Comments

@gmirsky
Copy link

gmirsky commented Sep 23, 2020

Is it possible to add COBOL and FORTRAN to the diagrams.programming.language class? I'd suggest bash and powershell too but I don't want to go overboard. I'm containerizing a lot of legacy code hence the request.

It might even make more sense to have a generic programming language class that can be overloaded with a name and a icon.

@steschuser
Copy link

Bash is already included.
Do you have logos for Cobol, Fortran and Powershell?

@gmirsky
Copy link
Author

gmirsky commented Sep 25, 2020

Will these do?

cobol
powershell-logo
fortran

@mingrammer
Copy link
Owner

You can make a PR for adding these languages. You can find the contributing guide in here.

@clayms
Copy link

clayms commented Oct 25, 2020

In the meantime you can use Custom() nodes.

from diagrams import Diagram
from diagrams.custom import Custom


with Diagram("\nCustom Nodes", show=False) as diag:
    cobol = Custom("Cobol", "cobol.png")
    pwsh = Custom("PowerShell", "pwsh.png")
    fortran = Custom("FORTRAN", "fortran.png")

    fortran >> cobol >> pwsh
 
diag

image

image files used above:

fortran

cobol

pwsh

@gmirsky
Copy link
Author

gmirsky commented Oct 26, 2020

Excellent! Thank you. I have been hip deep in converting a bunch of legacy FORTRAN and COBOL programs from Windows to Linux and containerizing them to actually devote time to this. Last time I dealt with both programming languages was in 1987 so it has been a re-learning experience.

@gmirsky gmirsky closed this as completed Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/programming Programming provider comp/node Issue of node component kind/feat/icon Icon request
Projects
None yet
Development

No branches or pull requests

4 participants