moonbitstack/moonctl/client does not have a README file

    Lang

    pub(all) enum Lang {
    TypeScript
    Dart
    Kotlin
    Java
    }

    The language a client is generated for: the four goctl generates or that the community asks for.

    Lang::ext

    fn Lang::ext(self : Lang) -> String

    The file extension a client of this language carries (ts, dart, kt, java).

    Lang::label

    fn Lang::label(self : Lang) -> String

    How the language is spelled in a comment, e.g. TypeScript.

    client_file

    fn client_file(spec :
    Spec
    , lang : Lang) -> (String, String)

    The file name and the source of the client lang for spec, which is what mctl api ts <file.api> writes.

    client_file_name

    fn client_file_name(lang : Lang, service : String) -> String

    The file a client for service lands in: greet_client.ts and friends, named after the service so two specs generated into one directory do not collide.

    generate_client

    fn generate_client(spec :
    Spec
    , lang : Lang) -> String

    Generate the client of lang for spec. The result is one file: the models the spec declares, then the client class, in that order, so a reader meets the data before the calls that carry it.

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io