Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 10, 2025

Summary

This PR adds a new --export command line option to the Link CLI tool that enables users to export their links database to the LiNo file format. This implementation addresses issue #24 by providing a way to export the internal links format using the Platform.Protocols.Lino library.

Changes

  • New Command Line Option: Added --export/-e flag to enable LiNo file export functionality
  • Export Implementation: Implemented ExportToLinoFile method that converts the internal links format to LiNo format
  • Smart Link Naming: The export uses named links when available and falls back to IDs when names are not present
  • Version Bump: Updated version from 2.2.2 to 2.3.0 to reflect the new feature addition
  • Library Integration: Leverages Platform.Protocols.Lino library for proper LiNo format handling

Testing

To test the new export functionality:

  1. Build the updated CLI tool
  2. Run with the new export option:
    ./link-cli --export output.lino
  3. Verify that the output file contains the links in proper LiNo format
  4. Confirm that named links are used when available, with ID fallback for unnamed links

Related Issues

Fixes #24


🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #24
@konard konard self-assigned this Sep 10, 2025
konard and others added 2 commits September 10, 2025 16:36
- Added --export/-e option to CLI command structure
- Implemented ExportToLinoFile function to export links data to LiNo format
- Uses Platform.Protocols.Lino.IListExtensions.Format for proper LiNo formatting
- Exports with named links when available, falls back to IDs
- Version bumped to 2.3.0 for new feature

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] LiNo export Add --export option for LiNo file export Sep 10, 2025
@konard konard marked this pull request as ready for review September 10, 2025 13:54
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.

LiNo export

2 participants