{"id":27019089,"url":"https://github.com/jabbalaci/go-cpc-ctc","last_synced_at":"2026-04-29T17:32:00.090Z","repository":{"id":65695848,"uuid":"597152717","full_name":"jabbalaci/go-cpc-ctc","owner":"jabbalaci","description":"Home of two CLI utilities. cpc: copy path to clipboard; ctc: copy text to clipboard.","archived":false,"fork":false,"pushed_at":"2023-02-19T17:33:48.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T08:08:58.471Z","etag":null,"topics":["cli","clipboard","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jabbalaci.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":"2023-02-03T18:41:20.000Z","updated_at":"2023-12-30T07:01:39.000Z","dependencies_parsed_at":"2024-06-20T07:04:42.825Z","dependency_job_id":"35555b59-6515-44f8-b63b-4e385d243d65","html_url":"https://github.com/jabbalaci/go-cpc-ctc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2Fgo-cpc-ctc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2Fgo-cpc-ctc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2Fgo-cpc-ctc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2Fgo-cpc-ctc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabbalaci","download_url":"https://codeload.github.com/jabbalaci/go-cpc-ctc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217217,"owners_count":20903009,"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":["cli","clipboard","go"],"created_at":"2025-04-04T17:19:03.063Z","updated_at":"2026-04-29T17:31:59.954Z","avatar_url":"https://github.com/jabbalaci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-cpc-ctc\n\nThis repository contains two binary programs,\nnamely **cpc** and **ctc**.\n\n## cpc\n\nThis is a Go implementation of the project https://github.com/jabbalaci/jabba-cpc .\n\nThe name \"cpc\" stands for _**c**opy **p**ath to **c**lipboard_.\n\n`cpc` copies the path of the current working directory to the clipboard.\nIf a parameter is given, it's also added to the path.\n\nSupported platforms: Windows and Linux (with X server).\n\n### Installation\n\n    $ go install github.com/jabbalaci/go-cpc-ctc/cmd/cpc@latest\n\n### Help\n\n    $ cpc -h\n    cpc (copy path to clipboard) v0.1.0\n    https://github.com/jabbalaci/go-cpc-ctc\n\n    - copies the path of the current working directory to the clipboard\n    - if a parameter is given, it's also added to the path\n\n    Usage: cpc [option] [parameter]\n    where option can be:\n        -h or --help            get this help\n\n### Windows\n\nExample:\n\n```\nc:\\\u003e cd c:\\download\n\nc:\\download\u003e cpc\n```\n\nNow the current directory's path, \"**c:\\download**\" is copied to the clipboard.\n\n```\nc:\\download\u003e cpc tree.jpg\n```\n\nNow the absolute path of the given file, \"**c:\\download\\tree.jpg**\" is copied to the clipboard.\n\n### Linux\n\n`cpc` relies on the external command `xsel` to manipulate the content of the clipboard.\nThus, you must install `xsel` using your package manager (under Ubuntu it's\n`sudo apt install xsel`).\n\nSee the example above, it works similarly under Linux.\n\n## ctc\n\nThis is a Go implementation of the project https://github.com/jabbalaci/jabba-ctc .\n\nThe name \"ctc\" stands for _**c**opy **t**ext to **c**lipboard_.\n\n`ctc` can copy its argument (as text) to the clipboard OR it can\ncopy the content of a text file to the clipboard.\n\n### Installation\n\n    $ go install github.com/jabbalaci/go-cpc-ctc/cmd/ctc@latest\n\n### Help\n\n    $ ctc -h\n    ctc (copy text to clipboard) v0.1.0\n    https://github.com/jabbalaci/go-cpc-ctc\n\n    Usage examples:\n\n    * ctc                   print this help\n    * ctc -h, ctc --help    print this help\n    * ctc \u003ctext\u003e            copy the given text to clipboard\n    * ctc -f \u003cfile\u003e         copy the content of the given file to clipboard\n\n### Windows\n\nExamples:\n\n```\nc:\\\u003e ctc hello.txt\n```\n\nNow the text \"**hello.txt**\" is copied to the clipboard.\n\n```\nc:\\\u003e ctc -f hello.txt\n```\n\nNow the **content** of the text file is copied to the clipboard.\n\n### Linux\n\n`ctc` relies on the external command `xsel` to manipulate the content of the clipboard.\nThus, you must install `xsel` using your package manager (under Ubuntu it's\n`sudo apt install xsel`).\n\nSee the example above, it works similarly under Linux.\n\n## Links\n\n* https://github.com/jabbalaci/jabba-cpc , cpc in Rust\n* https://github.com/jabbalaci/jabba-ctc , ctc in Rust\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabbalaci%2Fgo-cpc-ctc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabbalaci%2Fgo-cpc-ctc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabbalaci%2Fgo-cpc-ctc/lists"}