{"id":15652312,"url":"https://github.com/linuxsuren/go-cli-alias","last_synced_at":"2026-02-24T02:02:48.602Z","repository":{"id":39580412,"uuid":"318714256","full_name":"LinuxSuRen/go-cli-alias","owner":"LinuxSuRen","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-30T20:01:21.000Z","size":97,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T01:20:13.459Z","etag":null,"topics":["alias","cli","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinuxSuRen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-05T05:58:40.000Z","updated_at":"2021-11-14T14:16:31.000Z","dependencies_parsed_at":"2023-02-16T11:00:38.138Z","dependency_job_id":null,"html_url":"https://github.com/LinuxSuRen/go-cli-alias","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"LinuxSuRen/.github","purl":"pkg:github/LinuxSuRen/go-cli-alias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fgo-cli-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fgo-cli-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fgo-cli-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fgo-cli-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinuxSuRen","download_url":"https://codeload.github.com/LinuxSuRen/go-cli-alias/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fgo-cli-alias/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268363003,"owners_count":24238546,"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-08-02T02:00:12.353Z","response_time":74,"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":["alias","cli","hacktoberfest"],"created_at":"2024-10-03T12:41:59.100Z","updated_at":"2025-10-29T17:03:41.083Z","avatar_url":"https://github.com/LinuxSuRen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://goreportcard.com/badge/linuxsuren/go-cli-alias)](https://goreportcard.com/report/linuxsuren/go-cli-alias)\n[![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/linuxsuren/go-cli-alias)\n[![Contributors](https://img.shields.io/github/contributors/linuxsuren/go-cli-alias.svg)](https://github.com/linuxsuren/go-cli-alias/graphs/contributors)\n[![GitHub release](https://img.shields.io/github/release/linuxsuren/go-cli-alias.svg?label=release)](https://github.com/linuxsuren/go-cli-alias/releases/latest)\n![GitHub All Releases](https://img.shields.io/github/downloads/linuxsuren/go-cli-alias/total)\n\n# Go CLI Alias\n\nAdding a command alias feature for your CLI.\n\n# Get started\n\n`go get github.com/linuxsuren/go-cli-alias`\n\nPut the following code lines:\n\n```\nvar ctx context.Context\nif defMgr, err := alias.GetDefaultAliasMgr(); err == nil {\n    ctx = context.WithValue(context.Background(), alias.AliasKey, defMgr)\n\n    rootCmd.AddCommand(cmd.NewRootCommand(ctx))\n\n    cmd.RegisterAliasCommands(ctx, rootCmd)\n} else {\n    fmt.Println(fmt.Errorf(\"cannot get default alias manager, error: %v\", err))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxsuren%2Fgo-cli-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxsuren%2Fgo-cli-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxsuren%2Fgo-cli-alias/lists"}