Skip to content

Commit

Permalink
Add version command to bin/aeternity script (#4252)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanssv committed Jan 22, 2024
1 parent e02c516 commit 514f5bc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions apps/aeutils/priv/extensions/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

PATH=$BINDIR:$PATH
export ERL_LIBS=$ROOTDIR/lib
APPS_VSN=${REL_VSN:?}

echo "${APPS_VSN}"

exit $?
3 changes: 2 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
{copy, "apps/aeutils/priv/extensions/admin.sh", "bin/extensions/admin"},
{copy, "apps/aeutils/priv/extensions/messages_hash.sh", "bin/extensions/messages_hash"},
{copy, "apps/aeutils/priv/extensions/cli.sh", "bin/extensions/cli"},
{copy, "apps/aeutils/priv/extensions/status.sh", "bin/extensions/status"}
{copy, "apps/aeutils/priv/extensions/status.sh", "bin/extensions/status"},
{copy, "apps/aeutils/priv/extensions/version.sh", "bin/extensions/version"}
]},
{generate_start_script, false}
]}.
Expand Down
3 changes: 2 additions & 1 deletion scripts/aeternity_bin
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ Commands:
ping Print pong if the aeternity node is alive
console Start the aeternity node in the foreground with an interactive Erlang shell
status Verify node is running and print status summary
version Print node version
check_config Check validity of a configuration file
keys_gen Generate password protected account keypair
keys_gen Generate password protected account keypair
peer_key Display the peer key of the aeternity node
create_whitelist Export block hashes within a range of heights to json file
db_rollback Rollback blockchain to specified height, hash, or from whitelist file
Expand Down
2 changes: 1 addition & 1 deletion scripts/extensions.vars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{extensions, "status|cli|check_config|keys_gen|peer_key|create_whitelist|db_rollback|db_migrate|maintenance|offline|admin|messages_hash"}.
{extensions, "status|cli|check_config|keys_gen|peer_key|create_whitelist|db_rollback|db_migrate|maintenance|offline|admin|messages_hash|version"}.

0 comments on commit 514f5bc

Please sign in to comment.