{"id":16027536,"url":"https://github.com/followtheprocess/msg","last_synced_at":"2025-08-06T16:33:04.742Z","repository":{"id":38026936,"uuid":"407833653","full_name":"FollowTheProcess/msg","owner":"FollowTheProcess","description":"🚀 A lightweight terminal printing toolkit for Go CLIs.","archived":false,"fork":false,"pushed_at":"2024-11-18T13:10:18.000Z","size":12569,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T16:11:23.019Z","etag":null,"topics":["cli","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/FollowTheProcess.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":"2021-09-18T10:51:06.000Z","updated_at":"2024-11-18T13:10:21.000Z","dependencies_parsed_at":"2023-02-18T23:10:18.673Z","dependency_job_id":"3ddadba4-d83f-4fa9-b359-f9953441c31e","html_url":"https://github.com/FollowTheProcess/msg","commit_stats":{"total_commits":106,"total_committers":3,"mean_commits":"35.333333333333336","dds":0.3113207547169812,"last_synced_commit":"6cee9bde96ff69475389e294f530866ae8a8cdfb"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fmsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fmsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fmsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fmsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FollowTheProcess","download_url":"https://codeload.github.com/FollowTheProcess/msg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228930964,"owners_count":17993630,"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","go"],"created_at":"2024-10-08T20:22:11.424Z","updated_at":"2025-08-06T16:33:04.732Z","avatar_url":"https://github.com/FollowTheProcess.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# msg\n\n[![License](https://img.shields.io/github/license/FollowTheProcess/msg)](https://github.com/FollowTheProcess/msg)\n[![Go Reference](https://pkg.go.dev/badge/go.followtheprocess.codes/msg.svg)](https://pkg.go.dev/go.followtheprocess.codes/msg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/FollowTheProcess/msg)](https://goreportcard.com/report/github.com/FollowTheProcess/msg)\n[![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/msg?logo=github\u0026sort=semver)](https://github.com/FollowTheProcess/msg)\n[![CI](https://github.com/FollowTheProcess/msg/workflows/CI/badge.svg)](https://github.com/FollowTheProcess/msg/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/FollowTheProcess/msg/branch/main/graph/badge.svg)](https://codecov.io/gh/FollowTheProcess/msg)\n\n🚀 A lightweight terminal printing toolkit for Go CLIs.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/FollowTheProcess/msg/raw/main/docs/img/demo.png\" alt=\"demo\"\u003e\n\u003c/p\u003e\n\n## Project Description\n\nWho else is bored with boring grey text in CLIs? 🙋🏻‍♂️\n\nWe all have fancy terminals, utf-8 is everywhere, no one is still using the stock windows command prompt any more... are they? 🤨\n\n`msg` is a tiny toolkit to make rendering beautiful looking output from CLIs as easy as possible in Go.\n\nIt's so easy, you *already* know how it works!\n\n## Installation\n\n```shell\ngo get go.followtheprocess.codes/msg@latest\n```\n\n## Quickstart\n\nThe demo screenshot at the top of the page will get you:\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/FollowTheProcess/msg/raw/main/docs/img/demo.gif\" alt=\"output\"\u003e\n\u003c/p\u003e\n\nNot bad! 🚀\n\n## User Guide\n\n`msg` has 5 message types:\n\n* **Title** - Section header for a block of output\n* **Info** - General info, status updates etc.\n* **Success** - Your CLI has successfully done something\n* **Warn** - Warn the user about something e.g. ignoring hidden files\n* **Error** - Something has gone wrong in your application\n\nAll have a single trailing newline automatically applied except `Title` which has 1 leading and 2 trailing newlines to create separation.\n\n```go\nmsg.Error(\"My error message, underlying error: %v\", err) // Newlines are handled for you\n\n// i.e. you don't need to do this\nmsg.Error(\"My error message, underlying error: %v\\n\", err)\n\n// Titles are effectively \"\\n{your title}\\n\\n\"\nmsg.Title(\"My title\") // Is enough to get separation in sections of output\n```\n\n### Stdout/Stderr\n\nBy default, every function in `msg` prints to `os.Stdout` with the exception of `msg.Error` which prints to `os.Stderr`.\n\n`msg` also exports \"F-style\" print functions which can write to any `io.Writer` e.g:\n\n```go\nbuf := \u0026bytes.Buffer{} // is an io.Writer\n\nmsg.Ferror(buf, \"My error message\")\n```\n\n### Credits\n\nThis package was created with [copier] and the [FollowTheProcess/go_copier] project template.\n\n[copier]: https://copier.readthedocs.io/en/stable/\n[FollowTheProcess/go_copier]: https://github.com/FollowTheProcess/go_copier\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowtheprocess%2Fmsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollowtheprocess%2Fmsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowtheprocess%2Fmsg/lists"}