{"id":21994751,"url":"https://github.com/pola-lcs/cps-v2","last_synced_at":"2026-05-10T07:56:17.889Z","repository":{"id":258464567,"uuid":"872814455","full_name":"POLA-LCS/CPS-v2","owner":"POLA-LCS","description":"🖥️ CPS is a Free and Open Source console macro manager made with python3.","archived":false,"fork":false,"pushed_at":"2025-05-07T03:09:03.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T09:34:46.413Z","etag":null,"topics":["aliases","bash","cmd","console","console-tools","local-storage","macros","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/POLA-LCS.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-15T05:58:01.000Z","updated_at":"2025-06-13T14:25:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce29a589-5b8f-4cc4-8d84-927c053b72a3","html_url":"https://github.com/POLA-LCS/CPS-v2","commit_stats":null,"previous_names":["pola-lcs/cps-v2"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/POLA-LCS/CPS-v2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POLA-LCS%2FCPS-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POLA-LCS%2FCPS-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POLA-LCS%2FCPS-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POLA-LCS%2FCPS-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/POLA-LCS","download_url":"https://codeload.github.com/POLA-LCS/CPS-v2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POLA-LCS%2FCPS-v2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000830,"owners_count":26082950,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aliases","bash","cmd","console","console-tools","local-storage","macros","python"],"created_at":"2024-11-29T21:10:18.914Z","updated_at":"2025-10-09T06:32:49.814Z","avatar_url":"https://github.com/POLA-LCS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPS v2.3 (Command Prompt Saver)\n\n## Coming soon\n- Variable manipulation.\n- Profiles.\n\n## Why?\nThe last version of CPS ([See here](https://github.com/POLA-LCS/CPS)) it's OK, but the main problem was it's scalability.  \nI am open to future implementations and the way CPS v1 was coded it's a little too _bad_.\n\n## New implementations\n- **Console REPL:**  \nThe CPS v2 has a **Read-Eval-Print-Loop**, so you can setup your **CPS** easily.  \nTry it by typing `CPS.py --repl`\n\n- **Indexation:**  \n`CPS macro 0 = 'echo Hello'` set the first instruction of `macro` (if exists) to `echo Hello`.  \n`CPS macro 0 + ', World!'` appends `, World!` to the first instruction of `macro`.\n\n- **Disable output messages**:  \nEach time you type an instruction there's an output message. Output message of:  \n`CPS goodbye = 'rmdir C:\\Windows\\system32'` is `[CPS] Created: goodbye`  \nStarting the line with \".\" makes the output message disabled for that instruction.  \n`CPS . message = 'echo The output message must not display'`\n\n- **Parameters usage**:\nMacros can have parameters, this paramters need a default value.  \nCreating a parameter for the macro is this easy:  \n`CPS speak !! name 'Pola'` This sets the parameter `name` to a default value of `Pola` \n\nNow let's make it useful.  \n`CPS speak = 'echo !!name is speaking...'` the `!!` is the parameter template, this will be replaced with the value of the parameter when executing the macro.  \n`CPS speak` runs and displays this message `Pola is speaking...` due to the default value of `name` parameter.  \n`CPS speak ! Jonh` displays `Jonh is speaking...`.  \nextra arguments as in `CPS speak ! Jonh Maria Dave` do not causes a problem.  \n\n- **Multi-line operations**:\nIf you want to do multiple operations on a single macro you can try using the multi-line \"operator\".  \nUsing a comma after a macro name and before each operation runs it using the macro name as the first argument of CPS.  \nexample: `CPS new_macro , = 'cls' , + 'echo Hello!'` this literally runs as:  \n`CPS new_macro = 'cls'`  \n`CPS new_macro + 'echo Hello!'`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpola-lcs%2Fcps-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpola-lcs%2Fcps-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpola-lcs%2Fcps-v2/lists"}