Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
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