{"id":16241561,"url":"https://github.com/tve/commandparser","last_synced_at":"2026-05-09T02:13:23.849Z","repository":{"id":146951404,"uuid":"205719903","full_name":"tve/CommandParser","owner":"tve","description":"Super simple commandline processor for Arduino environments","archived":false,"fork":false,"pushed_at":"2019-09-02T00:17:57.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T06:51:15.463Z","etag":null,"topics":["arduino","arduino-library","cli","command-line","commandline","esp32","esp32-arduino"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-01T19:01:00.000Z","updated_at":"2022-02-21T15:32:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"14f1ce10-bde0-4375-b3fd-2c6bed67bb86","html_url":"https://github.com/tve/CommandParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2FCommandParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2FCommandParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2FCommandParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2FCommandParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tve","download_url":"https://codeload.github.com/tve/CommandParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819946,"owners_count":21001394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","arduino-library","cli","command-line","commandline","esp32","esp32-arduino"],"created_at":"2024-10-10T14:07:59.996Z","updated_at":"2026-05-09T02:13:18.806Z","avatar_url":"https://github.com/tve.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Super simple command-line parser for Arduino\n\nSuper simple commandline processor for Arduino environments. Features:\n\n- super small and simple codebase, easy to modify\n- provide minimal input editing (backspace)\n- register commands, let commands parse args\n\n## How it works\n\n- register command word callbacks using `addCommand()`\n- in the callback, use `getArg()` or `getRest()` to get next arg or rest of commandline for parsing\n- register default callback using `setDefault()` to print help/error message\n- for interactive input processing, use `CommandParser(HardwareSerial *serial)` constructor and call\n  `loop()` in sketch's own `loop()`\n- for batch processing (for example, command recieved via MQTT or HTTP) use `CommandParser()`\n  constructor and `parseLine()`\n\n## Examples\n\nThe best simple example can be found in\nhttps://github.com/tve/esp32-secure-base/blob/master/src/ESPSecureBase.cpp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftve%2Fcommandparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftve%2Fcommandparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftve%2Fcommandparser/lists"}