Git Product home page Git Product logo

Comments (5)

blakmatrix avatar blakmatrix commented on May 24, 2024

If you do an ad-hoc add of what you're mentioning does it work?

from node-zendesk.

mgartner avatar mgartner commented on May 24, 2024

I've tried moving the nconf requirement to the top of the file, but still have no success. I'm thinking that maybe this is a shortcoming of nconf, and I've submitted an issue: indexzero/nconf#142.

That being said, I'm wondering if nconf is really necessary in packages such as this one, where it will often be required as a dependency in other projects. I don't understand the use case where environment variables and command line arguments would be useful. The inputs required for this library are very straight forward, and passing them in from the command line or as environment variables is the responsibility of the user, not the library, IMO.

If I submitted a PR to rip out nconf and the env() and argv() features it provides, would you be open to merging it?

from node-zendesk.

blakmatrix avatar blakmatrix commented on May 24, 2024

Short answer, yes I would be open to this.

I've been mulling over this for a while now, there are still some executing
scripts directly from command line with the library as is.

I've been at a loss for how to make this just a library, yet also provide a
easy way for others to continue using it as originally designed. Perhaps
converting it to a pure library while providing a section in the readme as
how to do this simply will suffice (as this is more a library anyways, and
I agree this is something tthe integrator should be responsible for--
because if we were to split that feature out it'd be nothing but a
commandline env var wrapper).

Farrin A. Reid
http://www.linkedin.com/in/farrinreid

from node-zendesk.

mgartner avatar mgartner commented on May 24, 2024

Ya I think you could convert this to solely a library, and create a new repository for a node-zendesk CLI.

I'll work on removing nconf.

from node-zendesk.

blakmatrix avatar blakmatrix commented on May 24, 2024

@leore @mgartner I just made a change that should fix this issue #60 , please verify once i get the new version out the lines added are https://github.com/blakmatrix/node-zendesk/blob/master/lib/client.js#L22 and https://github.com/blakmatrix/node-zendesk/blob/master/lib/client.js#L47 , feel free to open if either of you think it needs to be reopened.

from node-zendesk.

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.