-
Notifications
You must be signed in to change notification settings - Fork 10k
[IMP] developer: new CLI commands and improvements #14368
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
base: master
Are you sure you want to change the base?
Conversation
2d4eb91
to
a772479
Compare
a772479
to
cc3e3fb
Compare
Added the new `i18n` and `module` commands. Added the existing `deploy`, `obfuscate`, `upgrade_code` commands. Reviewed titles to make the commands stand out in the ToC. Removed the no longer present `tsconfig` command. task-4866527
cc3e3fb
to
17ab6d6
Compare
@@ -236,7 +251,7 @@ Database | |||
|
|||
port the database listens on, defaults to 5432 | |||
|
|||
.. option:: --db-filter <filter> | |||
.. option:: --nb-filter <filter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
group.add_option("--db-filter", dest="dbfilter", my_default='', metavar="REGEXP",
help="Regular expressions for filtering available databases for Web UI. "
"The expression can use %d (domain) and %h (host) placeholders.")
@@ -654,15 +646,13 @@ and other ``-`` are replaced by ``_`` e.g. :option:`--db-template` becomes | |||
|
|||
Some conversions don't match the pattern: | |||
|
|||
* :option:`--db-filter` becomes ``dbfilter`` | |||
* `--db-filter` becomes ``dbfilter`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:option:
should be restored
========== | ||
.. _reference/cmdline/db: | ||
|
||
`db` - Database Management |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the other commands use a verb
`db` - Database Management | |
`db` - Manage a Database |
|
||
.. option:: --force | ||
|
||
Delete the database if already exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete the database if already exists. | |
Delete the database, may it exists already, before initializing the new one. |
|
||
.. option:: --language <language_code> | ||
|
||
Default language for the instance, default 'en_US' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--username
and --password
are using backticks, but here it uses quote. Let's make it consistent.
Default language for the instance, default 'en_US' | |
Default language for the instance, default `en_US` |
Prerequisites: | ||
|
||
- The server must have the module `base_import_module` installed. | ||
- You must provide administration login credentials for the login. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You must provide administration login credentials for the login. | |
- The `--login` selected user must have administration rights. |
|
||
.. option:: --login <username> | ||
|
||
administrative username of the server. Default is `admin`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no such thing as a "administrative username". (default admin
) for consistency
administrative username of the server. Default is `admin`. | |
user with admin rights (default `admin`) |
|
||
.. option:: --password <password> | ||
|
||
administrative password of the server. Default is `admin`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
administrative password of the server. Default is `admin`. | |
password of the user (default `admin`) |
.. option:: --verify-ssl | ||
|
||
verify the server's SSL certificate, to ensure the target instance is legit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for your pull-request. But it strikes me that this flag enables the SSL verification, meaning that it doesn't verify the certificate my default. It should be the contrary, the verify by default and to have a --no-verify-ssl
flag to make it insecure.
All the scripts are doing a best-effort at migrating the source code, but | ||
they are not silver bullets. | ||
|
||
It allows the use of the :option:`--addons-path <odoo-bin --addons-path>` option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar. It doesn't allow anything. It is compatible with the option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows the use of the :option:`--addons-path <odoo-bin --addons-path>` option. | |
It understands the :option:`--addons-path <odoo-bin --addons-path>` option. |
Added the new
i18n
andmodule
commands.Added the existing
deploy
,obfuscate
,upgrade_code
commands.Reviewed titles to make the commands stand out in the ToC.
Removed the no longer present
tsconfig
command.Task link
task-4866527