From 5ef358df3119a6998ae11b80671ebdcd9fcf5371 Mon Sep 17 00:00:00 2001 From: PharoahCoder <97231501+PharoahCoder@users.noreply.github.com> Date: Mon, 21 Nov 2022 17:41:40 +0400 Subject: [PATCH] Update cli_commands.c --- applications/services/cli/cli_commands.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/applications/services/cli/cli_commands.c b/applications/services/cli/cli_commands.c index 64ff8ef71..66e843665 100644 --- a/applications/services/cli/cli_commands.c +++ b/applications/services/cli/cli_commands.c @@ -136,6 +136,15 @@ void cli_command_date(Cli* cli, FuriString* args, void* context) { } } +void cli_command_src(Cli* cli, FuriString* args, void* context) { + // Quality of life feaature for people exploring CLI on lab.flipper.net/cli + // By Yousef AK + UNUSED(cli); + UNUSED(context); + + printf("https://github.com/DarkFlippers/unleashed-firmware"); +} + #define CLI_COMMAND_LOG_RING_SIZE 2048 #define CLI_COMMAND_LOG_BUFFER_SIZE 64 @@ -412,6 +421,8 @@ void cli_command_i2c(Cli* cli, FuriString* args, void* context) { void cli_commands_init(Cli* cli) { cli_add_command(cli, "!", CliCommandFlagParallelSafe, cli_command_device_info, NULL); cli_add_command(cli, "device_info", CliCommandFlagParallelSafe, cli_command_device_info, NULL); + cli_add_command(cli, "src", CliCommandFlagParallelSafe, cli_command_src, NULL); + cli_add_command(cli, "source", CliCommandFlagParallelSafe, cli_command_src, NULL); cli_add_command(cli, "?", CliCommandFlagParallelSafe, cli_command_help, NULL); cli_add_command(cli, "help", CliCommandFlagParallelSafe, cli_command_help, NULL);