GitHub CLI command to get all user's repos in human readable format including (name, description, url and primary language)
gh repo list <USERNAME> --limit 100 --json name,description,url,primaryLanguage --template '{{range .}}{{printf "Name:\t%s\n" .name}}{{printf "Description:\t%s\n" .description}}{{printf "URL:\t%s\n" .url}}{{if .primaryLanguage}}{{printf "Language:\t%s\n\n" .primaryLanguage.name}}{{else}}{{printf "Language:\tN/A\n\n"}}{{end}}{{end}}'Replace <USERNAME> with an actual GitHub username.
Output should look something like this:
Name: file-scanner
Description: A comprehensive C++ project demonstrating modern software engineering principles, implemented as a multithreaded malicious file scanner for a Kaspersky internship assignment.
URL: https://github.com/GregoryKogan/file-scanner
Language: C++
Name: md5-lib
Description: A production-grade, high-performance, and self-contained C++17 library for RFC 1321 MD5 hashing, featuring a modern streaming API for large files.
URL: https://github.com/GregoryKogan/md5-lib
Language: C++
Name: hangman-helper
Description: This is a little program, that should help you win in any hangman game.
URL: https://github.com/GregoryKogan/hangman-helper
Language: Vue