| 1234567891011121314151617181920212223242526272829303132 |
- #include <flipper_application/flipper_application.h>
- #include "../../cli_helpers.h"
- #include "../../cli_plugin_interface.h"
- #include "../../../version.h"
- static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) {
- UNUSED(args);
- UNUSED(cli);
- UNUSED(plugin_state);
- TOTP_CLI_PRINTF(
- "%" PRIu8 ".%" PRIu8 ".%" PRIu8
- #ifdef TOTP_APP_VERSION_META
- "+"
- TOTP_APP_VERSION_META
- #endif
- "\r\n",
- TOTP_APP_VERSION_MAJOR,
- TOTP_APP_VERSION_MINOR,
- TOTP_APP_VERSION_PATCH);
- }
- static const CliPlugin plugin = {.name = "TOTP CLI Plugin: Version", .handle = &handle};
- static const FlipperAppPluginDescriptor plugin_descriptor = {
- .appid = PLUGIN_APP_ID,
- .ep_api_version = PLUGIN_API_VERSION,
- .entry_point = &plugin,
- };
- const FlipperAppPluginDescriptor* totp_cli_version_plugin_ep() {
- return &plugin_descriptor;
- }
|