Skip to content

Commit

Permalink
fix: print cwd when starting the command, close #99
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Mar 3, 2020
1 parent 4a93354 commit 75b81a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6519,8 +6519,10 @@ const startServerMaybe = () => {
return
}

const cwd = cypressCommandOptions.cwd

console.log('starting server with command "%s"', startCommand)
console.log('current working directory "%s"', process.cwd())
console.log('current working directory "%s"', cwd)

const args = cliParser.parse(startCommand)
core.debug(`parsed command: ${args.join(' ')}`)
Expand All @@ -6531,7 +6533,6 @@ const startServerMaybe = () => {

const toolArguments = args.slice(1)
const argsString = toolArguments.join(' ')
const cwd = cypressCommandOptions.cwd
core.debug(`running ${quote(toolPath)} ${argsString} in ${cwd}`)
core.debug('without waiting for the promise to resolve')

Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ const startServerMaybe = () => {
return
}

const cwd = cypressCommandOptions.cwd

console.log('starting server with command "%s"', startCommand)
console.log('current working directory "%s"', process.cwd())
console.log('current working directory "%s"', cwd)

const args = cliParser.parse(startCommand)
core.debug(`parsed command: ${args.join(' ')}`)
Expand All @@ -248,7 +250,6 @@ const startServerMaybe = () => {

const toolArguments = args.slice(1)
const argsString = toolArguments.join(' ')
const cwd = cypressCommandOptions.cwd
core.debug(`running ${quote(toolPath)} ${argsString} in ${cwd}`)
core.debug('without waiting for the promise to resolve')

Expand Down

0 comments on commit 75b81a1

Please sign in to comment.