jmakhack / myanimelist-cli

Minimalistic command line interface for fetching user anime data from MyAnimeList.
https://aur.archlinux.org/packages/mya-git
MIT License
11 stars 15 forks source link

Add logic to retrieve an environment variable for Client ID #108

Closed jmakhack closed 1 year ago

jmakhack commented 1 year ago

Associated Issue

Closes #99

Implemented Solution

The implemented solution uses the getenv() function to pull the value of the MYANIMELIST_CLIENT_ID environment variable to set as the client id value used for pulling API data. If both the environment variable and the hard coded value is not found, a proper error message is displayed to the user (as opposed to a segmentation fault).

ghost commented 1 year ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/jmakhack/myanimelist-cli/108/6b5df9c8/5a68755c900b378588f00ee7e0dc13b36bf15310.svg)](https://app.codesee.io/r/reviews?pr=108&src=https%3A%2F%2Fgithub.com%2Fjmakhack%2Fmyanimelist-cli) #### Legend CodeSee Map legend