Line data Source code
1 : #include "../fd_config.h" 2 : #include "../fd_action.h" 3 : 4 : #include <unistd.h> 5 : 6 : void 7 : version_cmd_fn( args_t * args FD_PARAM_UNUSED, 8 0 : config_t * config FD_PARAM_UNUSED ) { 9 : FD_LOG_STDOUT(( "%s (%s)\n", fd_version_cstr, fd_commit_ref_cstr )); 10 0 : } 11 : 12 : action_t fd_action_version = { 13 : .name = "version", 14 : .args = NULL, 15 : .fn = version_cmd_fn, 16 : .perm = NULL, 17 : .is_immediate= 1, 18 : .description = "Show the current software version", 19 : };