Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Build System] Migration command #110

Open
SergioRibera opened this issue Oct 24, 2024 · 0 comments
Open

[New Build System] Migration command #110

SergioRibera opened this issue Oct 24, 2024 · 0 comments
Labels
cli This issue is related to the CLI

Comments

@SergioRibera
Copy link
Contributor

As indicated in the issue #108 the workspaces system would become deprecated so to facilitate the adoption of the new building system we would have to have a command that allows us to automate this migration, this command should also provide for future migrations, an implementation attempt could be

use clap::*;

#[derive(ValueEnum)]
enum MigrationStrategy {
  V1ToV2,
  // ...
}

#[derive(Debug, Parser)]
pub struct Opts {
    #[clap(subcommand)]
    pub command: Command,
}

#[derive(Debug, Parser)]
pub enum Command {
  Migration {
    #[clap(long, short, default_value = "v1tov2")]
    strategy: Option<MigrationStrategy>,
  }
}

The files related to this change are in the cli and the issue depends on the global implementation determined for the new build system

Important

All changes should PR to the runtime branch and you can check the differences here

@SergioRibera SergioRibera added the cli This issue is related to the CLI label Oct 24, 2024
@SergioRibera SergioRibera added this to the New Build System milestone Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli This issue is related to the CLI
Projects
None yet
Development

No branches or pull requests

1 participant