Merge pull request #10180 from briancain/powershell-cmd-fixup

vagrant powershell command fixup
This commit is contained in:
Brian Cain 2018-09-05 14:27:10 -07:00 committed by GitHub
commit cf2de6d714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -16,6 +16,9 @@ module VagrantPlugins
opts = OptionParser.new do |o|
o.banner = "Usage: vagrant powershell [-- extra powershell args]"
o.separator ""
o.separator "Opens a PowerShell session on the host to the guest"
o.separator "machine if both support powershell remoting."
o.separator ""
o.separator "Options:"
o.separator ""

View File

@ -22,6 +22,7 @@ module VagrantPlugins
def self.init!
return if defined?(@_init)
I18n.load_path << File.expand_path("templates/locales/command_ps.yml", Vagrant.source_root)
I18n.load_path << File.expand_path("templates/locales/comm_winrm.yml", Vagrant.source_root)
I18n.reload!
@_init = true
end

View File

@ -11,10 +11,11 @@ description: |-
**Command: `vagrant powershell`**
This will open a PowerShell prompt into a running Vagrant machine.
This will open a PowerShell prompt on the host into a running Vagrant guest machine.
This command will only work if the machine supports PowerShell. Not every
environment will support PowerShell.
This command will only work if the machines supports PowerShell. Not every
environment will support PowerShell. At the moment, only Windows is supported
with this command.
## Options