Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cli: Can't escape initial at (@) in parameter #2511

Closed
@pyhedgehog

Description

@pyhedgehog

Description

Symbol "@" in all parameter values parsed as file reference, and I found no way to override this behaviour.

def_parse_value(v:Any)->Any:
ifisinstance(v,str)andv.startswith("@"):
# If the user-provided value starts with @, we try to read the file
# path provided after @ as the real value. Exit on any error.
try:
withopen(v[1:],encoding="utf-8")asf:
returnf.read()
exceptExceptionase:
sys.stderr.write(f"{e}\n")
sys.exit(1)
returnv

Expected Behavior

gitlab project-tag delete --project-id somenamespace/myproject --name '@at-started-tag'

Command executed without errors and tag is deleted.

Actual Behavior

$gitlab project-tag delete --project-id somenamespace/myproject --name'@at-started-tag'[Errno 2] No such file or directory: 'at-started-tag'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp