Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add command line debug option #304

Open
WolfgangFahl opened this issue Apr 28, 2023 · 6 comments
Open

add command line debug option #304

WolfgangFahl opened this issue Apr 28, 2023 · 6 comments

Comments

@WolfgangFahl
Copy link

Proposed change

supply a command line tool that may be used in a docker image for checking proper operation

Alternative options

Who would use this feature?

Anybody who has to debug a non working nbgitpuller environment

(Optional): Suggest a solution

Change the pyproject.toml file and add a script. use argparser or click and allow using functionality this way.

@welcome
Copy link

welcome bot commented Apr 28, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@yuvipanda
Copy link
Contributor

There is one!

def main():
although it looks like it isn't documented well?

@WolfgangFahl
Copy link
Author

So it might be more a matter of installing a command line access to the python modules offering such services see :
https://stackoverflow.com/a/75419857/1497139

@WolfgangFahl
Copy link
Author

Oh i see what the problem is - the project does not use pyproject.toml yet but still has a setup.py - i didn't expect that and didn't even look for it - so the command is gitpuller.

After install things with

pip install . --user
gitpuller -h
usage: gitpuller [-h] git_url [branch_name] [repo_dir]

Synchronizes a github repository with a local repository.

positional arguments:
  git_url      Url of the repo to sync
  branch_name  Branch of repo to sync
  repo_dir     Path to clone repo under

options:
  -h, --help   show this help message and exit

is available

@WolfgangFahl
Copy link
Author

Unfortunately there is no debug, no verbose and no version option. Having a link to the source code is helpful though.

@WolfgangFahl WolfgangFahl changed the title add command line add command line debug option Apr 29, 2023
@WolfgangFahl
Copy link
Author

I still can't find out why nbgitpuller isn't working properly in our environment. Is there a log file somewhere by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants