uselagoon / uselagoon/lagoon-cli

Adding variable with spaces in the value only adds the first word in the value

Open
#454 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
28
Forks
14
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Describe the bug
When using lagoon add variable where the variable value contains spaces, only the first word is being added

To Reproduce
Steps to reproduce the behavior:

  1. lagoon add variable -p -N SOME_VARIABLE -V "Some Multi Word Value"
  2. lagoon list variables -p --reveal
  3. notice only first word is added
Image Image

Expected behavior
The full variable values is sent

Desktop (please complete the following information):

  • OS: Pop_OS
lagoon v0.32.0+f91b4ec0 (go1.24.3)
built 2025-07-16T12:51:31+0000```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the lagoon add variable command and tracing how its -V value is handled before being sent. Compare the value received by lagoon list variables --reveal with the quoted input. Done means the complete Some Multi Word Value is sent and displayed rather than only its first word.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.