Skip to content

Commit

Permalink
output the command we run if stdOut is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmaayan committed Dec 5, 2024
1 parent 3c1ca68 commit 9174553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

# Unreleased

- Log the Move command if `showStdout` is set to true

# 1.33.1 (2024-11-28)

- Add `gasProfile` function to `Move` class to allow for gas profiling of Aptos Move functions
Expand Down
5 changes: 5 additions & 0 deletions src/cli/move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ export class Move {
// so we need to keep track of the last stdout
let lastStdout = "";

if (showStdout) {
// eslint-disable-next-line no-console
console.log("Running command: ", args.join(" "));
}

// Check if current OS is windows
if (currentPlatform === "win32") {
childProcess = spawn("npx", args, { shell: true });
Expand Down

0 comments on commit 9174553

Please sign in to comment.