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

Add support for Just task runner #175

Closed
wants to merge 3 commits into from
Closed

Add support for Just task runner #175

wants to merge 3 commits into from

Conversation

ssbarnea
Copy link
Member

No description provided.

@ssbarnea
Copy link
Member Author

@hyperupcall I hope you will push some fixes on this branch. I send you and invite to allow you to do that.

@hyperupcall
Copy link
Collaborator

@ssbarnea Will do! I'll get to it later today

@hyperupcall
Copy link
Collaborator

I updated the code to be more aligned with the changes from #142 and #120. Were those the changes you were looking for in particular? I can take another look at updating the tests to improve codecov, but it will be a bit more difficult / take more time for me as there doesn't seem to be any existing tests for things in src/mk/tools.

@hyperupcall hyperupcall marked this pull request as ready for review January 13, 2024 12:49
docs/tools.md Show resolved Hide resolved
docs/tools.md Show resolved Hide resolved
src/mk/tools/just.py Show resolved Hide resolved
src/mk/tools/just.py Show resolved Hide resolved
actions = []
if not self.justfile:
msg = "Justfile not found"
raise RuntimeError(msg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ssbarnea, doesn't the CLI code have a better way to handle errors than raising a generic Exception?

src/mk/tools/just.py Show resolved Hide resolved
# Current implementation assumes that descriptions are added
# using double ## after the target name.
# Inspired by https://github.com/containers/podman/blob/master/Makefile#L127
match = re.match(r"^([a-zA-Z_-]+):.*?## (.*)$$", line)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this regex be made a top level constant and re.compile()ed?

@ssbarnea ssbarnea closed this Jun 17, 2024
@ssbarnea ssbarnea deleted the feat/just branch June 17, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants