forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented #195
- Loading branch information
Showing
10 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
Submodule flipperzero-firmware_official_dev
updated
212 files
Submodule flipperzero-firmware_official_stable
updated
535 files
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