Skip to content

Commit

Permalink
feat: run mise ls (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored Jan 5, 2025
1 parent 5083fe4 commit 5e190f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function run(): Promise<void> {
if (core.getBooleanInput('install')) {
await miseInstall()
}
await miseLs()
} catch (err) {
if (err instanceof Error) core.setFailed(err.message)
else throw err
Expand Down Expand Up @@ -213,6 +214,7 @@ function getOS(): string {
const testMise = async (): Promise<number> => mise(['--version'])
const miseInstall = async (): Promise<number> =>
mise([`install ${core.getInput('install_args')}`])
const miseLs = async (): Promise<number> => mise([`ls`])
const mise = async (args: string[]): Promise<number> =>
core.group(`Running mise ${args.join(' ')}`, async () => {
const cwd =
Expand Down

0 comments on commit 5e190f2

Please sign in to comment.