forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "version.h" | ||
#include "../../cli_helpers.h" | ||
#include "../../../version.h" | ||
|
||
#ifdef TOTP_CLI_RICH_HELP_ENABLED | ||
void totp_cli_command_version_docopt_commands() { | ||
TOTP_CLI_PRINTF(" " TOTP_CLI_COMMAND_VERSION " Get application version\r\n"); | ||
} | ||
void totp_cli_command_version_docopt_usage() { | ||
TOTP_CLI_PRINTF(" " TOTP_CLI_COMMAND_NAME " " TOTP_CLI_COMMAND_VERSION "\r\n"); | ||
} | ||
#endif | ||
|
||
void totp_cli_command_version_handle() { | ||
TOTP_CLI_PRINTF( | ||
"%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\r\n", | ||
TOTP_APP_VERSION_MAJOR, | ||
TOTP_APP_VERSION_MINOR, | ||
TOTP_APP_VERSION_PATCH); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
#include "../../../config/app/config.h" | ||
|
||
#define TOTP_CLI_COMMAND_VERSION "version" | ||
|
||
void totp_cli_command_version_handle(); | ||
#ifdef TOTP_CLI_RICH_HELP_ENABLED | ||
void totp_cli_command_version_docopt_commands(); | ||
void totp_cli_command_version_docopt_usage(); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#pragma once | ||
|
||
#define TOTP_APP_VERSION_MAJOR (4) | ||
#define TOTP_APP_VERSION_MINOR (0) | ||
#define TOTP_APP_VERSION_PATCH (3) | ||
#define TOTP_APP_VERSION_MINOR (1) | ||
#define TOTP_APP_VERSION_PATCH (0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters