github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/cmd/juju/commands/ssh_windows_test.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Copyright 2014 Cloudbase Solutions SRL
     3  // Licensed under the AGPLv3, see LICENCE file for details.
     4  
     5  // +build windows
     6  
     7  package commands
     8  
     9  // Commands to patch
    10  var patchedCommands = []string{"scp.cmd", "ssh.cmd"}
    11  
    12  // fakecommand outputs its arguments to stdout for verification
    13  var fakecommand = `@echo off
    14  setlocal enabledelayedexpansion
    15  set list=%1
    16  set argCount=0
    17  for %%x in (%*) do (
    18  set /A argCount+=1
    19  set "argVec[!argCount!]=%%~x"
    20  )
    21  for /L %%i in (2,1,%argCount%) do set list=!list! !argVec[%%i]!
    22  echo %list%
    23  `