Commit 3a47708c by Arun Babu Neelicattu

self: add lock command

parent fd95297d
...@@ -85,6 +85,7 @@ COMMANDS = [ ...@@ -85,6 +85,7 @@ COMMANDS = [
# Self commands # Self commands
"self add", "self add",
"self install", "self install",
"self lock",
"self remove", "self remove",
"self update", "self update",
"self show", "self show",
......
from __future__ import annotations
from poetry.console.commands.lock import LockCommand
from poetry.console.commands.self.self_command import SelfCommand
class SelfLockCommand(SelfCommand, LockCommand):
name = "self lock"
description = "Lock the Poetry installation's system requirements."
help = f"""\
The <c1>self lock</c1> command reads this Poetry installation's system requirements as \
specified in the <comment>{SelfCommand.get_default_system_pyproject_file()}</> file.
The system dependencies are locked in the <comment>\
{SelfCommand.get_default_system_pyproject_file().parent.joinpath("poetry.lock")}</> \
file.
"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment