{"id":32551190,"url":"https://github.com/aziontech/tablecli","last_synced_at":"2025-10-28T20:59:16.737Z","repository":{"id":239640309,"uuid":"795205033","full_name":"aziontech/tablecli","owner":"aziontech","description":"A command-line tool for generating and managing tables.","archived":false,"fork":false,"pushed_at":"2024-10-25T12:20:25.000Z","size":269,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-24T13:58:05.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.azion.com","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/aziontech.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T19:41:17.000Z","updated_at":"2025-03-17T21:11:34.000Z","dependencies_parsed_at":"2024-05-13T19:56:58.403Z","dependency_job_id":null,"html_url":"https://github.com/aziontech/tablecli","commit_stats":null,"previous_names":["aziontech/tablecli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aziontech/tablecli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Ftablecli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Ftablecli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Ftablecli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Ftablecli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aziontech","download_url":"https://codeload.github.com/aziontech/tablecli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Ftablecli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281512680,"owners_count":26514302,"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-28T02:00:06.022Z","response_time":60,"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":[],"created_at":"2025-10-28T20:58:55.546Z","updated_at":"2025-10-28T20:59:16.726Z","avatar_url":"https://github.com/aziontech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tablecli\n\n[![License: MIT](https://img.shields.io/badge/license-MIT-green\u0026logo=OpenSourceInitiative)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://img.shields.io/badge/reference-GO-blue.svg?style=\u0026logo=go\u0026logoColor=white)](https://godoc.org/github.com/aziontech/tablecli)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aziontech/tablecli)](https://goreportcard.com/report/github.com/aziontech/tablecli)\n\nThis package provides a convenient way to generate tabular output of any data, which is useful primarily for CLI tools.\n\n\u003cimg src=\"https://raw.githubusercontent.com/maxwelbm/tablecli/main/example.gif?auto=compress\u0026cs=tinysrgb\u0026h=750\u0026w=1260\" alt=\"Girl in a jacket\" width=\"100%\" height=\"250px\"\u003e\n\n#### Install Package\n```sh\ngo get github.com/aziontech/tablecli\n```\n\n#### Example of use:\n```go \npackage main\n\nimport (\n    table \"github.com/aziontech/tablecli\"\n    \"github.com/fatih/color\"\n    \"strings\"\n)\n\n\ntype list struct {\n    ID string \n    Name string\n}\n\nfunc main() {\n    tbl := table.New(\"ID\", \"NAME\")\n    headerFmt := color.New(color.FgBlue, color.Underline).SprintfFunc()\n    columnFmt := color.New(color.FgGreen).SprintfFunc()\n    tbl.WithHeaderFormatter(headerFmt).WithFirstColumnFormatter(columnFmt)\n\n    var list = []list{\n        { \"123123\", \"Jonh\"},\n        { \"123121\", \"Jeff\"},\n    }\n\n    for _, i := range list {\n\ttbl.AddRow(i.ID, i.Name)\n    }\n\n    format := strings.Repeat(\"%s\", len(tbl.GetHeader())) + \"\\n\"\n    tbl.CalculateWidths([]string{})\n\n    tbl.PrintHeader(format)\n\tfor _, r := range tbl.GetRows() {\n\t    tbl.PrintRow(format, r)\n    }\n}\n```\n\n#### Output: \n```sh\nID      NAME  \n123123  Jonh  \n123121  Jeff \n```\n\n## License\n\nThis project is licensed under the terms of the [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziontech%2Ftablecli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faziontech%2Ftablecli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziontech%2Ftablecli/lists"}