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