Skip to content

feat(cfl): port space key in page view/search #42

@rianjs

Description

@rianjs

Port space key display improvements from confluence-cli PR #104.

Files to modify:

  • tools/cfl/api/search.go - Extract space key from search results
  • tools/cfl/internal/cmd/page/view.go - Display space key
  • tools/cfl/internal/cmd/search/search.go - Add SPACE KEY column
  • Tests for each

Features:

page view:

  • Table/plain: Display space key alongside space ID (e.g., Space: DEV (ID: 9999))
  • JSON: Enrich with spaceKey field via GetSpace API call

search:

  • Add SPACE KEY column from resultGlobalContainer.displayUrl

Graceful fallback if space lookup fails.

Source: open-cli-collective/confluence-cli#104

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions