Show HN: 1Poshword, cross-platform PowerShell client for 1Password
1–10 of 17 posts
Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#2To be pronounced in Sean Connery's voice... though that'd be more like 1Pashword.
Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#3Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#4Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#5I don't see how this works on Linux though?
Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#6I don't see how this works on Linux though?
[1] - https://github.com/PowerShell/PowerShell [2] - https://github.com/PowerShell/PowerShell/#get-powershell
Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#7I don't see how this works on Linux though?
The module author used good form in dividing things up between the functions (cmdlets) that user should call from the PowerShell commandline and shouldn't change (1Poshword.psm1) and helper functions whose names are subject to change if he ever rewrites something (lib.ps1).
Re: Show HN: 1Poshword, cross-platform PowerShell client for 1Password
#8I don't see how this works on Linux though?
Linux has had PowerShell support for a few weeks now, and if you look in the lib.ps1, you'll see that ClipboardCopy function tries clip.exe (Windows), then pbcopy (MacOS), then finally xclip (Linux). The module author used good form in dividing things up between the functions (cmdlets) that user should call from the PowerShell commandline and shouldn't change (1Poshword.psm1) and helper functions whose names are subj…
- Use platform-appropriate native tools (e.g. clip.exe/pbcopy/xclip as mentioned)
- Use appropriate path separators (tip: just use / always - Windows handles it fine)
- Be mindful of case-sensitive file paths
- Use platform-appropriate newline (fixed a bug here just this morning)
- Avoid BOMs when writing files, unix doesn't like them (use [IO.File]::WriteAllText, not Out-File. Sad.)
- Need to restrict yourself to powershell cmdlets and .NET APIs that are available in the open-source version of powershell