{"id":15050673,"url":"https://github.com/wookietreiber/scala-cli-tools","last_synced_at":"2025-10-04T13:31:31.825Z","repository":{"id":57724058,"uuid":"103845796","full_name":"wookietreiber/scala-cli-tools","owner":"wookietreiber","description":"Scala Command-Line Interface Tools","archived":true,"fork":false,"pushed_at":"2019-01-14T14:44:17.000Z","size":60,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T09:36:04.159Z","etag":null,"topics":["cli","command-line","command-line-interface","scala","scala-cli"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wookietreiber.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}},"created_at":"2017-09-17T16:56:30.000Z","updated_at":"2024-04-01T17:43:00.000Z","dependencies_parsed_at":"2022-09-02T07:02:01.516Z","dependency_job_id":null,"html_url":"https://github.com/wookietreiber/scala-cli-tools","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/wookietreiber/scala-cli-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fscala-cli-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fscala-cli-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fscala-cli-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fscala-cli-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wookietreiber","download_url":"https://codeload.github.com/wookietreiber/scala-cli-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fscala-cli-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278321480,"owners_count":25967869,"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-04T02:00:05.491Z","response_time":63,"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":["cli","command-line","command-line-interface","scala","scala-cli"],"created_at":"2024-09-24T21:28:50.938Z","updated_at":"2025-10-04T13:31:31.564Z","avatar_url":"https://github.com/wookietreiber.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Scala CLI Tools\n===============\n\n[![Build Status](https://travis-ci.com/wookietreiber/scala-cli-tools.svg?branch=master)](https://travis-ci.com/wookietreiber/scala-cli-tools)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/67d9aaafa59a414e9b808ef45abb3fb0)](https://www.codacy.com/app/wookietreiber/scala-cli-tools?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=wookietreiber/scala-cli-tools\u0026amp;utm_campaign=Badge_Grade)\n[![Scaladoc](https://javadoc-badge.appspot.com/com.github.wookietreiber/scala-cli-tools_2.12.svg?label=scaladoc)](https://javadoc-badge.appspot.com/com.github.wookietreiber/scala-cli-tools_2.12)\n\nA collection of Scala command-line interface tools.\n\nTable of Contents\n-----------------\n\n\u003c!-- toc --\u003e\n\n- [Library](#library)\n  * [Memory](#memory)\n  * [Table](#table)\n- [Apps](#apps)\n- [Installation](#installation)\n  * [Arch Linux](#arch-linux)\n  * [Manual](#manual)\n\n\u003c!-- tocstop --\u003e\n\nLibrary\n-------\n\n### Memory\n\nHumanize or dehumanize bytes:\n\n```scala\nimport scalax.cli.Memory\n\nMemory.humanize(10485760) // \"10 MiB\"\n\nimplicit val MU = Memory.SI\nMemory.dehumanize(\"10 MB\") // Some(10000000)\n```\n\n### Table\n\nPrint a pretty command line table:\n\n```scala\n// create the table builder object\n\nimport scalax.cli.Table\nimport shapeless.Sized\n\nval table = Table(Sized(\"h1\", \"h2\", \"h3\"))\n\ntable.rows += Sized(\"a\", \"b\", \"c\")\ntable.rows += Sized(\"d\", \"e\", \"f\")\n\ntable.alignments(1) = Table.Alignment.Right\n\n// get lines\n\nval lines: List[String] = table.lines\n\n// print it directly\n\ntable.print()\ntable.print(Console.err)\n\n// h1 | h2 | h3\n// ---|----|---\n// a  |  b | c\n// d  |  e | f\n```\n\nApps\n----\n\n- **dehumanize** un-pretty-print byte values\n- **highlight** search for pattern and highlight matches\n- **humanize** pretty-print byte values\n- **meansd** print mean and standard deviation\n\nInstallation\n------------\n\n### Arch Linux\n\nInstall all apps with the [**scala-cli-tools** AUR package](https://aur.archlinux.org/packages/scala-cli-tools/):\n\n```bash\npacaur -S scala-cli-tools\n```\n\n### Manual\n\nInstall all apps to `~/bin`:\n\n```bash\nPREFIX=$HOME NATIVE_MODE=release \\\n  sbt install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwookietreiber%2Fscala-cli-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwookietreiber%2Fscala-cli-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwookietreiber%2Fscala-cli-tools/lists"}