Giter Club home page Giter Club logo

Comments (16)

Avni-Sharma avatar Avni-Sharma commented on July 22, 2024 2

I have added error handling for the first two functions namely login and drive data.
I also feel that a list of functions can be maintained with this issue here to which we can add error handling, as there are many people to contribute to and there are many places to add the error handling.
Something like this kubernetes/kubernetes#68026
Where every contributor contributes to a particular package similarly here every contributor can contribute to specific functions. This would be helpful in welcoming multiple contributors on board, a speedy update and independent merging of the branches.

from drive-cli.

shikhag2018 avatar shikhag2018 commented on July 22, 2024

I would like to work on this issue

from drive-cli.

inishchith avatar inishchith commented on July 22, 2024

@shikhag2018 Sure. Go Ahead

from drive-cli.

shikhag2018 avatar shikhag2018 commented on July 22, 2024

How to get started with it.

from drive-cli.

inishchith avatar inishchith commented on July 22, 2024

@shikhag2018

  • You can use try except for error and exception handling. Read more
  • Use appropriate error / exception messages

Example

from drive-cli.

nurdtechie98 avatar nurdtechie98 commented on July 22, 2024

@shikhag2018 start with adding error handling for few functions where you feel there is a need of. We'll also let you know if we find other such places where you could do that in the mean time.

from drive-cli.

shikhag2018 avatar shikhag2018 commented on July 22, 2024

how to run the code of drive-cli and know what exceptions are raised or i have to manually read the code and think where execeptions can be raised.

from drive-cli.

shivam1708 avatar shivam1708 commented on July 22, 2024

Hi shikhag2018, I think manually reading the code can be tedious. It is better to try out things with an approach of finding a bug by giving buggy inputs and then handle the case. If it is pretty understandable by reading to include exception handling then you should. You can directly use drive-cli (npm install drive-cli) and test if you find bugs or follow the steps given (development mode) in the readme. Have you done that?

from drive-cli.

shikhag2018 avatar shikhag2018 commented on July 22, 2024

yes i have done the setup in both development and usage mode and i m using pip for python.

from drive-cli.

shivam1708 avatar shivam1708 commented on July 22, 2024

Sorry i wrote npm install drive-cli in flow. There is only python package. In "drive-cli/drive_cli" there is a file dcli.py which holds all the functions and utilities. In that file initially there are utility functions and from line 489 there are actual functions written for drive cli command line options. So try using different options on command line and understand the flow of execution. Once you understand that you can start testing with buggy inputs to find errors. If you have any difficulties feel free to ask :)

from drive-cli.

Avni-Sharma avatar Avni-Sharma commented on July 22, 2024

PTAL #29

from drive-cli.

nurdtechie98 avatar nurdtechie98 commented on July 22, 2024

Agreed @Avni-Sharma , I have create checklist and we can start with separate contributions for each individual functionality.

from drive-cli.

udit-001 avatar udit-001 commented on July 22, 2024

I would like to work on cat command!

from drive-cli.

nurdtechie98 avatar nurdtechie98 commented on July 22, 2024

sure @udit-001 go ahead

from drive-cli.

udit-001 avatar udit-001 commented on July 22, 2024

@nurdtechie98 Done, please review!

from drive-cli.

udit-001 avatar udit-001 commented on July 22, 2024

Can I work on log command, I noticed it requires error handling as well but it isn't mentioned in this thread? @inishchith

from drive-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.