LCOV - code coverage report
Current view: top level - app/shared/commands - version.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 3 0.0 %
Date: 2025-07-05 04:47:39 Functions: 0 1 0.0 %

          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             : };

Generated by: LCOV version 1.14