Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 14, 2025

Implements the same keyring abstraction pattern from jira-cli PR #19. The go-keyring library requires dbus on Linux, which may not be available in containerized or minimal environments.

Changes

  • New internal/keyring package with platform-specific implementations via build tags
    • Linux: File-based storage at ~/.config/slack-cli/token (JSON format, 0600 permissions)
    • macOS/Windows: System keyring via go-keyring (unchanged behavior)
  • Updated main.go to use internal/keyring instead of direct go-keyring import

Example

On Linux, tokens are now stored as JSON instead of requiring dbus:

{
  "SLACK_TOKEN": "xoxb-..."
}

The API remains identical - slack configure and token retrieval work the same across all platforms.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • slack.com
    • Triggering command: /tmp/go-build45997241/b001/slack-cli.test -test.testlogfile=/tmp/go-build45997241/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Look at kitproj/jira-cli#19 and do the same here.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Jira CLI command usage in documentation Add file-based token storage for Linux to avoid dbus dependency Nov 14, 2025
Copilot AI requested a review from alexec November 14, 2025 02:17
@alexec alexec marked this pull request as ready for review November 14, 2025 02:38
@alexec alexec merged commit e081cab into main Nov 14, 2025
2 checks passed
@alexec alexec deleted the copilot/update-jira-cli-command-usage branch November 14, 2025 02:39
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