Skip to content

Conversation

@jsoriano
Copy link
Member

@jsoriano jsoriano commented Dec 9, 2022

Tested only on powershell on Linux, but I guess it is the same on Windows, I followed the documentation for Windows.

It adds support for powershell in elastic-package stack shellinit, and also adds the help text when an error about a missing environment variable is reported. Shell is detected now on init when loading the internal/stack module, to avoid having to add the --shell init to all stack commands (but this could be another option).

@jsoriano jsoriano requested a review from a team December 9, 2022 16:59
@jsoriano jsoriano self-assigned this Dec 9, 2022
case "pwsh", "powershell":
return `elastic-package stack shellinit | Invoke-Expression`
default:
return `eval "$(elastic-package stack shellinit)"`
Copy link
Member Author

Choose a reason for hiding this comment

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

@endorama is this syntax also used on fish?

@elasticmachine
Copy link
Collaborator

elasticmachine commented Dec 9, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-12-09T17:57:47.452+0000

  • Duration: 33 min 14 sec

Test stats 🧪

Test Results
Failed 0
Passed 868
Skipped 0
Total 868

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Collaborator

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (35/35) 💚
Files 66.923% (87/130) 👍
Classes 61.828% (115/186) 👍
Methods 47.589% (375/788) 👍 0.012
Lines 30.583% (3381/11055) 👍 0.032
Conditionals 100.0% (0/0) 💚

@jsoriano
Copy link
Member Author

jsoriano commented Dec 9, 2022

/test

@jsoriano jsoriano merged commit 019ab37 into elastic:main Dec 12, 2022
@jsoriano jsoriano deleted the powershell-shellinit branch December 12, 2022 13:19
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.

3 participants