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

no-copy CLI example #3438

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

no-copy CLI example #3438

wants to merge 16 commits into from

Conversation

drernie
Copy link
Contributor

@drernie drernie commented Apr 22, 2023

Add sample code to CLI (push)

@codecov
Copy link

codecov bot commented Apr 22, 2023

Codecov Report

Merging #3438 (edf865c) into master (d53e94a) will increase coverage by 7.80%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #3438      +/-   ##
==========================================
+ Coverage   28.29%   36.10%   +7.80%     
==========================================
  Files         641      686      +45     
  Lines       25936    29981    +4045     
  Branches     4418     4418              
==========================================
+ Hits         7339    10825    +3486     
- Misses      17425    17984     +559     
  Partials     1172     1172              
Flag Coverage Δ
api-python 91.33% <66.66%> (+0.09%) ⬆️
catalog 10.17% <ø> (ø)
lambda 86.03% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
api/python/quilt3/main.py 58.76% <66.66%> (+0.02%) ⬆️

... and 50 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@robnewman robnewman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file docs/api-reference/cli.md should not be deleted as part of the PR

@drernie drernie requested a review from robnewman April 25, 2023 22:23
@@ -479,6 +503,11 @@ def create_parser():
action="store_true",
help="Do not copy data. Package manifest entries will reference the data at the original location.",
)
optional_args.add_argument(
"--detailed_help",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not be consistent with other flags?

Suggested change
"--detailed_help",
"--detailed-help",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be ideal, but the catalog command already set it the other way, and changing it now doesn't seem worth the inconsistency/breakage.

    catalog_p.add_argument(
            "--detailed_help",
            help="Display detailed information about this command and then exit",
            action="store_true",
    )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could make requested change given #3439 is merged.

@akarve akarve requested a review from sir-sigurd June 16, 2023 21:37
@@ -138,7 +138,7 @@ optional arguments:
```
usage: quilt3 push --dir DIR [-h] [--registry REGISTRY] [--dest DEST]
[--message MESSAGE] [--meta META] [--workflow WORKFLOW]
[--force] [--dedupe] [--no-copy]
[--force] [--dedupe] [--no-copy] [--detailed_help]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just make -h work like this instead of adding another command?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detailed_help is the existing mechanism for adding documentation to the published web docs.

"""
Push a Quilt package with `name` to the specified (or default) registry.

If detailed_help=True, display detailed information about the `quilt3 push` command and then exit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If detailed_help=True, display detailed information about the `quilt3 push` command and then exit
If detailed_help=True, display detailed information about the `quilt3 push` command and then exit.

@@ -479,6 +503,11 @@ def create_parser():
action="store_true",
help="Do not copy data. Package manifest entries will reference the data at the original location.",
)
optional_args.add_argument(
"--detailed_help",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could make requested change given #3439 is merged.

@@ -4,3 +4,6 @@ test:

install-local:
pip install -e .[tests]

testdocs:
cd ../../testdocs && poetry install && poetry run pytest --codeblocks ../docs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not have a newline here?

Suggested change
cd ../../testdocs && poetry install && poetry run pytest --codeblocks ../docs
cd ../../testdocs && poetry install && poetry run pytest --codeblocks ../docs

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

Successfully merging this pull request may close these issues.

None yet

4 participants