LCOV - code coverage report
Current view: top level - app/shared_dev/commands - help.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 17 0.0 %
Date: 2025-03-20 12:08:36 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "../../shared/fd_config.h"
       2             : 
       3             : #include <unistd.h>
       4             : 
       5             : extern action_t ACTIONS[];
       6             : extern action_t DEV_ACTIONS[];
       7             : 
       8             : void
       9             : dev_help_cmd_fn( args_t *   args   FD_PARAM_UNUSED,
      10           0 :                  config_t * config FD_PARAM_UNUSED ) {
      11           0 :   FD_LOG_STDOUT(( "Firedancer development binary\n\n" ));
      12           0 :   FD_LOG_STDOUT(( "Usage: fddev [OPTIONS] <SUBCOMMAND>\n\n" ));
      13           0 :   FD_LOG_STDOUT(( "\nOPTIONS:\n" ));
      14             :   /* fddev does not have many flag arguments so we hard-code the
      15             :      --config parameter. */
      16           0 :   FD_LOG_STDOUT(( "        --config <PATH>    Path to config TOML file\n\n" ));
      17             : 
      18           0 :   FD_LOG_STDOUT(( "SUBCOMMANDS (fddev):\n" ));
      19           0 :   for( ulong i=0; DEV_ACTIONS[ i ].name; i++ ) {
      20           0 :     FD_LOG_STDOUT(( "    %10s    %s\n", DEV_ACTIONS[ i ].name, DEV_ACTIONS[ i ].description ));
      21           0 :   }
      22             : 
      23           0 :   FD_LOG_STDOUT(( "\nSUBCOMMANDS (fdctl):\n" ));
      24           0 :   for( ulong i=0; ACTIONS[ i ].name; i++ ) {
      25           0 :     for( ulong j=0; DEV_ACTIONS[ j ].name; j++ ) {
      26           0 :       if( 0==strcmp( ACTIONS[ i ].name, DEV_ACTIONS[ j ].name ) ) break;
      27           0 :     }
      28           0 :     FD_LOG_STDOUT(( "    %10s    %s\n", ACTIONS[ i ].name, ACTIONS[ i ].description ));
      29           0 :   }
      30           0 : }

Generated by: LCOV version 1.14