Skip to content

Commit

Permalink
feat: improve scripts log
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Nov 20, 2024
1 parent 17a5cea commit 92f96b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/scripts/push-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dir_name=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
source "$dir_name/constants.sh"

function push_action {
echo "cleos -u $NODEOSURL push action $*"
echo "$print_cleos_cmd push action $*"
cleos push action "$@"
}

Expand Down
6 changes: 5 additions & 1 deletion cpp/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,8 @@ function add_key_value_string {

function add_key_value_number {
add_key_value "number" "$@"
}
}

function print_cleos_cmd {
echo "$(grep -Po '`[a-z\s]+' <<< "$(type cleos)" | tr -d '`') push action $*"
}

0 comments on commit 92f96b8

Please sign in to comment.