Skip to content

Add scope flags #38

@agustinseifert

Description

@agustinseifert

It would be useful to have flags to parametrize the conversion scope.

Proposal

flag: --scope
values:

  • c: class
  • i: interface
  • p: property
  • m: method
  • g: global variable + global constant + global function

usage example:
cdv --scope c+p

input:

export interface IFoo {
    doFoo(): void;
}

export class Foo implements IFoo {
    public name: string;
    public doFoo(): void {
    }
}

output:

namespace Codeverter
{
    public class Foo
    {
        public string Name { get; set; }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions