Comments (16)
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.
I would like to work on this issue
from drive-cli.
@shikhag2018 Sure. Go Ahead
from drive-cli.
How to get started with it.
from drive-cli.
- You can use
try except
for error and exception handling. Read more - Use appropriate error / exception messages
from drive-cli.
@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.
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.
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.
yes i have done the setup in both development and usage mode and i m using pip for python.
from drive-cli.
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.
PTAL #29
from drive-cli.
Agreed @Avni-Sharma , I have create checklist and we can start with separate contributions for each individual functionality.
from drive-cli.
I would like to work on cat command!
from drive-cli.
sure @udit-001 go ahead
from drive-cli.
@nurdtechie98 Done, please review!
from drive-cli.
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)
- TypeError: '<' not supported between instances of 'dict' and 'float' HOT 2
- drive push doesn't delete locally deleted remote GDrive files HOT 2
- Can't login into my account HOT 2
- can't authorized through remote machines on cli. HOT 3
- Allow for Anonymous Mode
- Sign in with Google temporarily disabled for this app HOT 8
- Cannot download files which are in shared drive and user has atleast read access to the file HOT 1
- Service account HOT 1
- Sign in with Google temporarily disabled for this app
- App is blocked by google HOT 1
- drive push doens't sync files HOT 2
- Drive API requires updates to your code before Sep 13, 2021
- -bash: drive: command not found HOT 1
- Login: This app is blocked HOT 2
- CLI ? Unusable from terminal. Need GUI.
- This app is blocked This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access. HOT 4
- Add Option to Create Project Through Google Developer Console, and authenticate with personal client_secret.json
- Unable to track a local directory
- NameError: name 'dir_name' is not defined when doing push HOT 1
- Google sign in not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drive-cli.