Giter Site home page Giter Site logo

Comments (6)

Ephigenia avatar Ephigenia commented on September 23, 2024

The configuration is stored in the user’s directory usually ~/.mite-cli.json and is not deleted when mite-cli gets uninstalled. I’m not sure if it would be a good practise removing this file when mite-cli gets uninstalled using the npm "uninstall" hook as it might not be always the intention when uninstalling mite-cli. I’ll have to check other similar applications and how they handle such a case.

I’m also not sure if #90 would be solved if the configuration file is removed. But have to make additional checks.

from mite-cli.

daaanny90 avatar daaanny90 commented on September 23, 2024

alright. Just tried and removing the configuration file does not help. I would like to help to solve this bug but I'm not sure how can I set up a development environment to debug mite-cli.

npm start is not useful. Can you point me in the right direction?

from mite-cli.

Ephigenia avatar Ephigenia commented on September 23, 2024

Unfortunately the CLI is not optimized for being debuggable very easy. Maybe you get some more debug information when you prepend DEBUG=* before running the CLI. You can also debug the current values from the config by running mite config list … When there’s no ~/.mite-cli.json you should get the defaults: https://github.com/Ephigenia/mite-cli/blob/develop/source/config.js

from mite-cli.

daaanny90 avatar daaanny90 commented on September 23, 2024

I would like to contribute but if I can't set up a development environment I can't of course try and test my contributions.

My question was: how can a contributor set up the project in order to develop something? If I download the repo and use npm start I just get the errors of #90 or Access denied. Please check your credentials. if I use a subdomain. I am doing something wrong? Is not npm start the script to use to start the project?

from mite-cli.

Ephigenia avatar Ephigenia commented on September 23, 2024

I think if you solve the issue in #90 you’ll be good to go. Just to make sure that you’re not missing something … 

Assuming you cloned your fork or this repo to ~/Development/mite-cli then you’ll be able to run the different cli commands after setting up apiKey and account correctly.

Assuming you have cloned your fork or this repo to "~/Development/mite-cli"

cd ~/Development/mite-cli
npm run start -- config set apiKey <key>
npm run start -- config set account <subdomain>
npm run start -- --help
npm run start -- list

Note that also in this case the config will be stored in ~/.mite-cli.json.

from mite-cli.

Ephigenia avatar Ephigenia commented on September 23, 2024

The initial description of issue is intended. An uninstall of mite-cli won’t remove the configuration file as this would be a not common behavior. I’m closing this issue now.

from mite-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.