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

feat: standalone tasks #3240

Merged
merged 1 commit into from
Nov 27, 2024
Merged

feat: standalone tasks #3240

merged 1 commit into from
Nov 27, 2024

Conversation

jdx
Copy link
Owner

@jdx jdx commented Nov 27, 2024

Allows running tasks with mise run ./foo or fetching tasks via http

Copy link

github-actions bot commented Nov 27, 2024

Hyperfine Performance

mise x -- echo

Command Mean [ms] Min [ms] Max [ms] Relative
mise-main x -- echo 18.6 ± 0.5 17.5 21.7 1.00
mise-2024.11.31 x -- echo 19.0 ± 0.8 17.7 26.3 1.02 ± 0.05
mise x -- echo 19.1 ± 0.7 17.7 23.0 1.02 ± 0.04

mise env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-main env 15.1 ± 0.5 14.2 17.8 1.00
mise-2024.11.31 env 15.3 ± 0.5 14.2 18.7 1.01 ± 0.05
mise env 15.3 ± 0.6 14.0 18.7 1.01 ± 0.05

mise hook-env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-main hook-env 15.1 ± 0.5 14.0 16.8 1.00
mise-2024.11.31 hook-env 15.2 ± 0.5 14.1 16.6 1.01 ± 0.05
mise hook-env 15.4 ± 0.7 14.1 19.0 1.02 ± 0.05

mise ls

Command Mean [ms] Min [ms] Max [ms] Relative
mise-main ls 12.6 ± 0.3 12.1 15.0 1.00 ± 0.03
mise-2024.11.31 ls 12.6 ± 0.3 12.0 15.9 1.00 ± 0.03
mise ls 12.6 ± 0.2 12.0 13.5 1.00

Allows running tasks with `mise run ./foo`
This was linked to issues Nov 27, 2024
This was unlinked from issues Nov 27, 2024
@jdx jdx linked an issue Nov 27, 2024 that may be closed by this pull request
@jdx jdx enabled auto-merge (squash) November 27, 2024 19:50
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-25.41% 97.56%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (04f6c4b) 21856 15857 72.55%
Head commit (3fa4c81) 42675 (+20819) 20119 (+4262) 47.14% (-25.41%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3240) 41 40 97.56%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@jdx jdx merged commit aba8c04 into main Nov 27, 2024
24 checks passed
@jdx jdx deleted the task-standalone branch November 27, 2024 19:56
@powerman
Copy link
Contributor

powerman commented Nov 28, 2024

How mise run ./foo differs from mise exec -- ./foo?

@jdx
Copy link
Owner Author

jdx commented Nov 28, 2024

it's run as a task so you get usage parsing

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

Successfully merging this pull request may close these issues.

standalone tasks
2 participants