{"id":16335783,"url":"https://github.com/3noch/nestify","last_synced_at":"2025-10-25T17:16:04.296Z","repository":{"id":13619717,"uuid":"16312921","full_name":"3noch/nestify","owner":"3noch","description":"A command-line tool that indents each entry in a log file based on how \"nested\" it is.","archived":false,"fork":false,"pushed_at":"2015-02-17T21:34:37.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-27T04:08:33.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/3noch.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":"2014-01-28T13:45:15.000Z","updated_at":"2019-12-05T06:33:13.000Z","dependencies_parsed_at":"2022-09-10T15:50:50.138Z","dependency_job_id":null,"html_url":"https://github.com/3noch/nestify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnestify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnestify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnestify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Fnestify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3noch","download_url":"https://codeload.github.com/3noch/nestify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412471,"owners_count":19634016,"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-10-10T23:42:22.094Z","updated_at":"2025-10-25T17:15:59.263Z","avatar_url":"https://github.com/3noch.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"nestify\r\n=======\r\n\r\nA command-line tool that indents each entry in a log file based on how \"nested\" it is.\r\n\r\nUsage\r\n-----\r\n\r\nUse `nestify --help` for details about arguments. All input is through `stdin`.\r\n\r\nCurrently, a nestifiable log file must have at least two columns. The last column will be indented\r\nand the penultimate column will be used as the name of a scope. Certain keywords are detected in\r\nthe last column to determine if a new scope is being added or removed from the stack. The keywords\r\nfor adding a new scope are \"Enter\" and \"Begin\". The keywords for ending a scope are \"Exit\" and \"End\".\r\n\r\nFor example, if `test.log` contains this\r\n\r\n```\r\nfunc1|Doing something.\r\nfunc2|Enter\r\nfunc2|Doing something else.\r\nfunc2|Exit\r\nfunc1|More stuff.\r\nfunc3|Begin\r\nfunc4|Begin\r\nfunc5|Begin\r\nfunc5|Ok, we're done.\r\nfunc5|End\r\nfunc4|Exit\r\nfunc3|End\r\nfunc1|Shutdown...\r\n```\r\n\r\nthen piping `test.log` through `nestify` produces indented output:\r\n\r\n```\r\n$ cat test.log | nestify -d \"|\"\r\nfunc1|Doing something.\r\nfunc2|Enter\r\nfunc2| Doing something else.\r\nfunc2|Exit\r\nfunc1|More stuff.\r\nfunc3|Begin\r\nfunc4| Begin\r\nfunc5|  Begin\r\nfunc5|   Ok, we're done.\r\nfunc5|  End\r\nfunc4| Exit\r\nfunc3|End\r\nfunc1|Shutdown...\r\n```\r\n\r\n\r\nBuilding\r\n--------\r\n\r\nYou must have\r\n\r\n  * [Glasgow Haskell Compiler](http://www.haskell.org/ghc/)\r\n  * [Cabal](http://www.haskell.org/cabal/) (which comes with the [Haskell Platform](http://www.haskell.org/platform/))\r\n\r\nThen you can\r\n\r\n```bash\r\n$ cd nestify\r\n$ cabal install\r\n```\r\n\r\n\r\nLicense\r\n-------\r\n\r\nCopyright \u0026copy; Covenant Eyes 2014\r\n\r\nThis package is licensed under the [MIT license](http://opensource.org/licenses/mit-license.php)\r\n(see `LICENSE`).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Fnestify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3noch%2Fnestify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Fnestify/lists"}