{"id":21426285,"url":"https://github.com/phalbert/reminders-cli","last_synced_at":"2025-03-16T21:14:56.766Z","repository":{"id":84438408,"uuid":"304036274","full_name":"phalbert/reminders-cli","owner":"phalbert","description":"A simple app to send OS notifications for reminders","archived":false,"fork":false,"pushed_at":"2024-05-30T11:27:32.000Z","size":34,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T07:29:44.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/phalbert.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-14T14:12:33.000Z","updated_at":"2024-05-30T11:27:34.000Z","dependencies_parsed_at":"2024-05-30T13:03:29.042Z","dependency_job_id":null,"html_url":"https://github.com/phalbert/reminders-cli","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/phalbert%2Freminders-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalbert%2Freminders-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalbert%2Freminders-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalbert%2Freminders-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phalbert","download_url":"https://codeload.github.com/phalbert/reminders-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933436,"owners_count":20370986,"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-11-22T21:41:18.750Z","updated_at":"2025-03-16T21:14:56.739Z","avatar_url":"https://github.com/phalbert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reminders\n\n## CLI SWITCH COMMANDS\n\n```bash\n./bin/client create\n\n./bin/client edit\n\n./bin/client fetch\n\n./bin/client delete\n\n./bin/client health\n```\n\n### What does the command look like?\n\n```bash\n./bin/client delete --id=3\n```\n\n1. cmd -\u003e `./bin/client`\n2. sub cmd -\u003e `delete` \n3. args -\u003e `--id=3`\n\nSince we are using golang, we will utilise `os.Args` which is a slice which gets populated whenever we run a go program. \n\n\u003e os.Args[0] is the path to the program, and os.Args[1:] holds the arguments to the program. \n\n```golang\npackage main\nimport (\n    \"fmt\"\n    \"os\"\n)\nfunc main() {\n    // os.Args provides access to raw command-line arguments.\n    // Note that the first value in this slice is the path to the program, \n    // and os.Args[1:] holds the arguments to the program.\n\n    argsWithProg := os.Args\n    argsWithoutProg := os.Args[1:]\n\n    // You can get individual args with normal indexing.\n    arg := os.Args[3]\n\n    fmt.Println(argsWithProg)\n    fmt.Println(argsWithoutProg)\n    fmt.Println(arg)\n}\n```\n\nTo pass arguments, we can use one of the following forms\n\n```bash\n--id=3\n\n--id 3\n\n -id=3\n\n -id 3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalbert%2Freminders-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphalbert%2Freminders-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalbert%2Freminders-cli/lists"}