Skip to content

added flags functionality to login-command#13

Open
dygland wants to merge 2 commits into
opf:mainfrom
dygland:main
Open

added flags functionality to login-command#13
dygland wants to merge 2 commits into
opf:mainfrom
dygland:main

Conversation

@dygland
Copy link
Copy Markdown

@dygland dygland commented May 11, 2026

Ticket

No ticket availalbe for this at https://community.openproject.org/projects/cli/work_packages

What are you trying to accomplish?

Add the flags --hostand --api-key to the login command in order to be able to login automatically via .bashrc for example.

Screenshots

N/A

What approach did you choose and why?

I needed to be able to sign in automatically on starting a shell, adding the flags to login.go seemed to be the best solution.

Merge checklist

  • Added/updated tests - No added tests, code passes go test -v ./...
  • Added/updated documentation in Lookbook (patterns, previews, etc) - N/A
  • Tested major browsers (Chrome, Firefox, Edge, ...) - N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant