Skip to content

How should we represent argument types? #3

Closed

Description

@patriksvensson
No description provided.

Activity

  1. changed the title [-]How should we represent types?[/-] [+]How should we represent argument types?[/+] on Jun 28, 2025
  2. AllanOricil commented on Jul 8, 2025

    @AllanOricil

    @mdonnalley this could be useful to ease the usage of CLIs built with oclif by AI agents. You can help defining the standard using oclif's well rounded model. Then you can create @oclif/plugin-opencli

  3. cristiand391 commented on Jul 8, 2025

    @cristiand391
  4. xoofx commented on Jul 9, 2025

    @xoofx

    Love the initiative! 🤗

    It would be quite valuable to support argument types to automate parsing from the specs to a strongly typed language.

    I would think that having a default string type and then provide support for:

    • some basic primitive types: bool, i8, u8, i16, u16, i32, u32, i64, u64, f32, f64
    • some common structured types: guid, datetime, url...

    In case of list arguments e.g. separated by , with primitive/structured types, using vec<i32> with only one level for now would be enough. (e.g. no vec<vec<xyx>>)

    Should cover most of the usecases and things can be expanded further in minor versions.

  5. locked and limited conversation to collaborators on Jul 9, 2025
  6. converted this issue into a discussion #11 on Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions