Skip to content

#9 - add command 1x-token-setup#10

Merged
normanlolx merged 1 commit intomainfrom
feature/9-support-project-token-setup
Feb 24, 2026
Merged

#9 - add command 1x-token-setup#10
normanlolx merged 1 commit intomainfrom
feature/9-support-project-token-setup

Conversation

@frega
Copy link
Copy Markdown
Collaborator

@frega frega commented Feb 16, 2026

No description provided.

echo '{}' > ~/.composer/auth.json
fi
touch ~/.npmrc

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a test here to check that we have these files/directories exist.

Or rather: we should state their existence or non-existence as iirc this will work as well w/o.

## #ddev-generated
# Description: Setup GitLab tokens and configure ddev environments
# Usage: 1x-token-setup

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure we stop if this is not supported by the Host OS.

echo "Error: PERSONAL_ACCESS_TOKEN is required."
exit 1
fi

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validating that this token can is correct and works here would be a nice touch. (Is there a way to test this without introducing e.g. a glab dependency on the host - or should we mandate glab on the host?)


echo "Setup complete!"

# Note: if
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left this out - maybe people want that ... hide behind a prompt.

@frega frega requested a review from normanlolx February 16, 2026 11:40
@frega frega self-assigned this Feb 16, 2026
@normanlolx normanlolx merged commit fdf5078 into main Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants