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

Feature: Support Adding explicit package entries using option in monas new #16

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

HuM4NoiD
Copy link
Contributor

This pull request adds a flag option to monas new subcommand, which adds an explicit package entry in the root project

$ monas new --help
                                                                                                                                            
 Usage: monas new [OPTIONS] PACKAGE [LOCATION]                                                                                              
                                                                                                                                            
 Create a new <package> under <location>.                                                                                                   
 The package name must be locally unique and available on PyPI.                                                                             
 If location isn't given, it defaults to the first location of `packages` config.                                                           
                                                                                                                                            
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --explicit-package-entry  -e    If specified, an explicit package entry will be added to the list of packages                            │
│ --help                          Show this message and exit.                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Example Usage:
The following commands will produce the following root pyproject.toml

$ monas init -n
$ monas new -e service binaries
$ monas new -e utils common
$ monas new -e sample .
[tool.monas]
packages = ["binaries/service", "common/utils", "sample"]
version = "0.0.0"
python-version = "3.11"

@frostming frostming merged commit f67c48f into frostming:main Oct 25, 2023
12 checks passed
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.

2 participants