{"id":18980707,"url":"https://github.com/snowfallorg/cowsay","last_synced_at":"2025-04-19T19:13:16.724Z","repository":{"id":82459854,"uuid":"578473113","full_name":"snowfallorg/cowsay","owner":"snowfallorg","description":"More cows, optionally rendered as images!","archived":false,"fork":false,"pushed_at":"2023-12-10T18:15:55.000Z","size":49,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T12:05:49.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowfallorg.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}},"created_at":"2022-12-15T06:17:20.000Z","updated_at":"2025-01-21T05:11:55.000Z","dependencies_parsed_at":"2023-12-10T19:27:10.574Z","dependency_job_id":"f084f5a2-0c1d-4aa8-bb23-b690de83234f","html_url":"https://github.com/snowfallorg/cowsay","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fcowsay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fcowsay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fcowsay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fcowsay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowfallorg","download_url":"https://codeload.github.com/snowfallorg/cowsay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249239344,"owners_count":21235852,"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":[],"created_at":"2024-11-08T16:07:34.022Z","updated_at":"2025-04-16T12:31:12.711Z","avatar_url":"https://github.com/snowfallorg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cowsay\n\n\u003ca href=\"https://nixos.wiki/wiki/Flakes\" target=\"_blank\"\u003e\n\t\u003cimg alt=\"Nix Flakes Ready\" src=\"https://img.shields.io/static/v1?logo=nixos\u0026logoColor=d8dee9\u0026label=Nix%20Flakes\u0026labelColor=5e81ac\u0026message=Ready\u0026color=d8dee9\u0026style=for-the-badge\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/snowfallorg/lib\" target=\"_blank\"\u003e\n\t\u003cimg alt=\"Built With Snowfall\" src=\"https://img.shields.io/static/v1?logoColor=d8dee9\u0026label=Built%20With\u0026labelColor=5e81ac\u0026message=Snowfall\u0026color=d8dee9\u0026style=for-the-badge\"\u003e\n\u003c/a\u003e\n\n\u003cp\u003e\n\u003c!--\n\tThis paragraph is not empty, it contains an em space (UTF-8 8195) on the next line in order\n\tto create a gap in the page.\n--\u003e\n  \n\u003c/p\u003e\n\n\u003e More cows, optionally rendered as images!\n\n\u003cdetails\u003e\n\t\u003csummary\u003eExamples\u003c/summary\u003e\n\n![charlie-brown](./examples/charlie-brown.png)\n![banjo-kazooie](./examples/banjo-kazooie.png)\n![glados](./examples/glados.png)\n\n\u003c/details\u003e\n\n## Try Without Installing\n\nYou can run this flake's packages without committing to installing them by using the following commands.\n\n### `cowsay`\n\n```bash\nnix run github:snowfallorg/cowsay -- \"Hello, World\"\n```\n\n### `cow2img`\n\n```bash\nnix run github:snowfallorg/cowsay#cow2img\n```\n\n## Install\n\nFirst, include this flake as an input in your flake.\n\n```nix\n{\n\tdescription = \"My awesome flake\";\n\n\tinputs = {\n\t\tnixpkgs.url = \"github:nixos/nixpkgs/nixos-unstable\";\n\n\t\t# Snowfall Lib is not required, but will make configuration easier for you.\n\t\tsnowfall-lib = {\n\t\t\turl = \"github:snowfallorg/lib\";\n\t\t\tinputs.nixpkgs.follows = \"nixpkgs\";\n\t\t};\n\n\t\tcowsay = {\n\t\t\turl = \"github:snowfallorg/cowsay\";\n\t\t\tinputs.nixpkgs.follows = \"nixpkgs\";\n\t\t};\n\t};\n}\n```\n\nThen add the overlay or use the packages from this flake directly.\n\n```nix\n{\n\tdescription = \"My awesome flake\";\n\n\tinputs = {\n\t\tnixpkgs.url = \"github:nixos/nixpkgs/nixos-unstable\";\n\n\t\t# Snowfall Lib is not required, but will make configuration easier for you.\n\t\tsnowfall-lib = {\n\t\t\turl = \"github:snowfallorg/lib\";\n\t\t\tinputs.nixpkgs.follows = \"nixpkgs\";\n\t\t};\n\n\t\tcowsay = {\n\t\t\turl = \"github:snowfallorg/cowsay\";\n\t\t\tinputs.nixpkgs.follows = \"nixpkgs\";\n\t\t};\n\t};\n\n\toutputs = inputs:\n\t\tinputs.snowfall-lib.mkFlake {\n\t\t\tinherit inputs;\n\t\t\tsrc = ./.;\n\n\t\t\toverlays = with inputs; [\n\t\t\t\t# To make this flake's packages available in your NixPkgs package set.\n\t\t\t\tcowsay.overlays.default\n\n                # There are also individual overlays for specific packages.\n                cowsay.overlays.\"package/cow2img\"\n                cowsay.overlays.\"package/cowsay\"\n\t\t\t];\n\n\t\t\toutputs-builder = channels:\n\t\t\t\tlet\n\t\t\t\t\tinherit (channels.nixpkgs) system;\n\t\t\t\t\t# Use packages directly from the input instead.\n\t\t\t\t\tinherit (inputs.cowsay.packages.${system}) cowsay cow2img;\n\t\t\t\tin {\n\t\t\t\t\t# Use the packages in some way.\n\t\t\t\t};\n\t\t};\n}\n```\n\n## Usage\n\n### `cowsay`\n\nThe `cowsay` package in this flake acts as a wrapper for the original `cowsay` command.\nHowever, instead of displaying a cow it will display a random image each time. Use it just\nlike the normal `cowsay` command.\n\n```bash\ncowsay \"Hello, World\"\n```\n\n### `cow2img`\n\nThe `cow2img` package in this flake will render the output of `fortune` and `cowsay` to\nan image. See the following for help information.\n\n```\ncow2img\n\nUSAGE\n\n  cow2img [options]\n\nOPTIONS\n\n  -h, --help              Show this help message\n  -c, --cow \u003ccowfile\u003e     Use a specific cow file\n  -m, --message \u003ctext\u003e    Use a specific message\n  -p, --pick              Pick a cow from a list\n\nEXAMPLES\n\n  $ # Render a random cow and quote.\n  $ cow2img\n\n  $ # Render a cow with a specific message.\n  $ cow2img --message \"Hello, World!\"\n\n  $ # Render a specific cow.\n  $ cow2img --cow ./my.cow\n\n  $ # Pick a cow.\n  $ cow2img --pick\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowfallorg%2Fcowsay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowfallorg%2Fcowsay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowfallorg%2Fcowsay/lists"}