Commit 3a08fee 1 parent a8f2ca0 commit 3a08fee Copy full SHA for 3a08fee
File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include "cli.h"
4
4
#include <lib/toolbox/args.h>
5
+ #include "cli_common_helpers.h"
5
6
#include "commands/list/list.h"
6
7
#include "commands/add/add.h"
7
8
#include "commands/delete/delete.h"
11
12
#define TOTP_CLI_COMMAND_HELP "help"
12
13
13
14
static void totp_cli_print_unknown_command (FuriString * unknown_command ) {
14
- printf ("Command \"%s\" is unknown. Use \"help\" command to get list of available commands." , furi_string_get_cstr (unknown_command ));
15
+ TOTP_CLI_PRINTF ("Command \"%s\" is unknown. Use \"help\" command to get list of available commands." , furi_string_get_cstr (unknown_command ));
15
16
}
16
17
17
18
static void totp_cli_print_help () {
18
- printf ("Usage:\r\n" );
19
- printf (TOTP_CLI_COMMAND_NAME " <command> <arguments>\r\n" );
20
- printf ("Command list:\r\n" );
21
- printf ("\t" TOTP_CLI_COMMAND_HELP " - print command usage help\r\n\r\n" );
19
+ TOTP_CLI_PRINTF ("Usage:\r\n" );
20
+ TOTP_CLI_PRINTF (TOTP_CLI_COMMAND_NAME " <command> <arguments>\r\n" );
21
+ TOTP_CLI_PRINTF ("Command list:\r\n" );
22
+ TOTP_CLI_PRINTF ("\t" TOTP_CLI_COMMAND_HELP " - print command usage help\r\n\r\n" );
22
23
totp_cli_command_list_print_help ();
23
24
totp_cli_command_delete_print_help ();
24
25
totp_cli_command_add_print_help ();
Original file line number Diff line number Diff line change 2
2
#include <cli/cli.h>
3
3
4
4
void totp_cli_print_invalid_arguments () {
5
- printf ("Invalid command arguments. use \"help\" command to get list of available commands" );
5
+ TOTP_CLI_PRINTF ("Invalid command arguments. use \"help\" command to get list of available commands" );
6
6
}
7
7
8
8
bool totp_cli_ensure_authenticated (PluginState * plugin_state , Cli * cli ) {
You can’t perform that action at this time.
0 commit comments