{"id":39571804,"url":"https://github.com/tmickleydoyle/moonwalk","last_synced_at":"2026-01-18T07:19:05.430Z","repository":{"id":53055205,"uuid":"247839432","full_name":"tmickleydoyle/moonwalk","owner":"tmickleydoyle","description":"Walk the working directory towards the root recursively","archived":false,"fork":false,"pushed_at":"2025-07-31T19:19:17.000Z","size":6837,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"default","last_synced_at":"2025-07-31T22:36:20.599Z","etag":null,"topics":["filepath","golang","walk"],"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/tmickleydoyle.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,"zenodo":null}},"created_at":"2020-03-16T23:49:04.000Z","updated_at":"2025-07-31T19:19:21.000Z","dependencies_parsed_at":"2025-07-31T21:05:31.860Z","dependency_job_id":"f0fa65ec-a544-48a3-8376-c8647ee41ee4","html_url":"https://github.com/tmickleydoyle/moonwalk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tmickleydoyle/moonwalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmickleydoyle%2Fmoonwalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmickleydoyle%2Fmoonwalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmickleydoyle%2Fmoonwalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmickleydoyle%2Fmoonwalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmickleydoyle","download_url":"https://codeload.github.com/tmickleydoyle/moonwalk/tar.gz/refs/heads/default","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmickleydoyle%2Fmoonwalk/sbom","scorecard":{"id":889892,"data":{"date":"2025-08-11","repo":{"name":"github.com/tmickleydoyle/moonwalk","commit":"4800fbe39d786a4823a14230c2a4a2b30801ab87"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: moonwalk:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/tmickleydoyle/moonwalk/go.yml/default?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/tmickleydoyle/moonwalk/go.yml/default?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/go.yml:40","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T11:23:44.704Z","repository_id":53055205,"created_at":"2025-08-24T11:23:44.704Z","updated_at":"2025-08-24T11:23:44.704Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28532977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["filepath","golang","walk"],"created_at":"2026-01-18T07:19:05.361Z","updated_at":"2026-01-18T07:19:05.421Z","avatar_url":"https://github.com/tmickleydoyle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MoonWalk: Walk to the root directory 🌙\n\n`moonwalk` recursively walks the working directory back to the root returning all files in the walk back. It now includes filtering, search, multiple output formats, an **interactive TUI mode**, and detailed statistics about files found in the walk.\n\n![MoonWalk Demo](https://img.shields.io/badge/TUI-Interactive-blue?style=for-the-badge)\n![Go Version](https://img.shields.io/badge/Go-1.15+-00ADD8?style=for-the-badge\u0026logo=go)\n\n## ✨ Features\n\n- 🚀 Walk from current directory or a specified path back to root\n- 🔍 Filter files by extension\n- 📝 Search for text within files\n- 📊 Multiple output formats (text, JSON, CSV)\n- 🖥️  **Interactive TUI mode with real-time navigation**\n- 📏 File size reporting\n- 📈 Statistics and summary information\n- 🎯 Control depth of directory traversal\n\n## Examples\n\n## 🎮 Interactive TUI Mode\n\nLaunch the beautiful terminal user interface:\n\n```bash\n$ moonwalk -tui\n```\n\n### TUI Features:\n- 📁 **Visual file browser** with file-type specific icons (🐹 Go, 🐍 Python, 🟨 JavaScript, etc.)\n- ⌨️  **Keyboard navigation** with arrow keys or vim-style (j/k)\n- 🔍 **Live search** - press `/` to filter files by name\n- 📊 **Toggle statistics** - press `d` to show/hide detailed info\n- 📁 **Path display** - press `p` to toggle current directory path\n- ❓ **Interactive help** - press `h` or `?` for command reference\n- 🔄 **Real-time refresh** - press `r` to rescan directory\n- 🎨 **Beautiful styling** with syntax highlighting\n- 📱 **Responsive design** that adapts to terminal size\n\n### TUI Keyboard Shortcuts:\n| Key | Action |\n|-----|--------|\n| `↑/↓` or `j/k` | Navigate up/down |\n| `g` / `G` | Go to top/bottom |\n| `/` | Enter search mode |\n| `d` | Toggle detailed statistics |\n| `p` | Toggle path display |\n| `h` or `?` | Toggle help |\n| `r` | Refresh/rescan files |\n| `q` or `Ctrl+C` | Quit |\n\n### Combine TUI with other options:\n\n```bash\n# TUI mode with Go files only\n$ moonwalk -tui -ext .go\n\n# TUI mode with content search\n$ moonwalk -tui -search \"TODO\"\n\n# TUI mode from specific directory\n$ moonwalk -tui -path /home/user/projects\n```\n\n## 📚 CLI Examples\n\n### Basic usage from the current directory\n\n```bash\n$ moonwalk\n```\n\n### Moonwalk from a specific directory\n\n```bash\n$ moonwalk -path /Users/tmickleydoyle/Desktop\n```\n\n_The path needs to be the absolute path to the working directory._\n\n### Filter by file extension\n\n```bash\n$ moonwalk -ext .go\n```\n\n### Search for text within files\n\n```bash\n$ moonwalk -search \"import\"\n```\n\n### Limit directory depth\n\n```bash\n$ moonwalk -depth 2\n```\n\n### Show file sizes\n\n```bash\n$ moonwalk -size\n```\n\n### Generate summary statistics\n\n```bash\n$ moonwalk -summary\n```\n\n### Output in different formats\n\n```bash\n$ moonwalk -format json\n$ moonwalk -format csv\n```\n\n### 🎯 Advanced combinations\n\n```bash\n# Search for Go functions with file sizes in JSON format\n$ moonwalk -path /Users/tmickleydoyle/Projects -ext .go -search \"func\" -size -format json\n\n# Get summary of Python files up to 3 levels deep\n$ moonwalk -ext .py -depth 3 -summary\n\n# Interactive TUI for JavaScript files with content search\n$ moonwalk -tui -ext .js -search \"import\"\n```\n\n## 📋 Example Output (Text Format)\n\n```text\n[Directory] \"/Users/tmickleydoyle/Desktop\"\n[File] \"/Users/tmickleydoyle/Desktop/data.csv\" (2.3 KB)\n[File] \"/Users/tmickleydoyle/Desktop/data.json\" (4.1 KB)\n[File] \"/Users/tmickleydoyle/Desktop/filename.txt\" (512 B)\n[File] \"/Users/tmickleydoyle/Desktop/download.png\" (2.5 MB)\n[Directory] \"/Users/tmickleydoyle\"\n[File] \"/Users/tmickleydoyle/cohorts.json\" (1.2 KB)\n[File] \"/Users/tmickleydoyle/house_query.sql\" (3.4 KB)\n[Directory] \"/Users\"\n[File] \"/Users/setup.txt\" (128 B)\n```\n\n## 📊 Example Output (Summary)\n\n```text\nSummary:\nTotal Files: 8\nTotal Directories: 3\nTotal Size: 2.5 MB\nAverage File Size: 320.0 KB\nLargest File: /Users/tmickleydoyle/Desktop/download.png (2.5 MB)\n\nFile Extensions:\n.csv: 1 files\n.json: 2 files\n.txt: 2 files\n.png: 1 files\n.sql: 1 files\n.html: 1 files\n```\n\n## 🚀 Installation\n\n### Using Go Install\n```bash\ngo install github.com/tmickleydoyle/moonwalk@latest\n```\n\n### From Source\n```bash\ngit clone https://github.com/tmickleydoyle/moonwalk.git\ncd moonwalk\ngo build -o moonwalk .\n```\n\n### Dependencies\n- Go 1.15 or higher\n- Terminal with color support (for best TUI experience)\n\n## 📖 Usage\n\n```\nUsage:\n  moonwalk [flags]\n\nFlags:\n  -path string       starting point directory\n  -ext string        filter files by extension (e.g., .go, .txt)\n  -search string     search for text within files\n  -format string     output format (text, json, csv) (default \"text\")\n  -size              show file sizes\n  -summary           show summary statistics\n  -depth int         maximum directory depth (-1 for unlimited) (default -1)\n  -tui               run in interactive TUI mode\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n\n## 🙏 Acknowledgments\n\n- Built with [Bubble Tea](https://github.com/charmbracelet/bubbletea) for the TUI interface\n- Styled with [Lip Gloss](https://github.com/charmbracelet/lipgloss) for beautiful terminal output\n- Inspired by the need for better directory exploration tools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmickleydoyle%2Fmoonwalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmickleydoyle%2Fmoonwalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmickleydoyle%2Fmoonwalk/lists"}