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

Meta comments support for giter statement #3

Open
onouguier-ledger opened this issue Mar 14, 2024 · 3 comments
Open

Meta comments support for giter statement #3

onouguier-ledger opened this issue Mar 14, 2024 · 3 comments

Comments

@onouguier-ledger
Copy link

Would be nice to add kinda support for meta comments in the source project, eq:

// -g8- if(dbmigration.truthy)
        _ <- DBMigration[IO].migrate("db/migrations")
// -g8- endif

Could be rendered as:

$if(dbmigration.truthy)$
        _ <- DBMigration[IO].migrate("db/migrations")
$endif$

And append a default properties:

dbmigration=false

Out ou the box it works with a Perl (postprecessing), I would be more than happy to open a PR with this feature if you are interested.

Cheers, and kudo for this <3 project !

@arturopala
Copy link
Owner

hi @onouguier-ledger, sorry for the late reply. I'm happy to accept your PR or work on the feature. Is Scala 3 a show-stopper for you? I just released a new version migrated to use Scala3, but I can roll back this if needed or make it release for both 2 and 3.

@arturopala
Copy link
Owner

ok, I reverted the changes and only upgraded to Scala 2.13

@onouguier-ledger
Copy link
Author

Hi, I'll give a look asap !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants