#!/usr/bin/env bash
# commands/config/migrate.sh

function cmd::config::migrate::on_load() {
  flag::define --force   bool "Skip confirmation"        section:Options
  flag::define --dry-run bool "Show what would be done"  section:Options
}

function cmd::config::migrate::run() {
  flag::parse "$@" || return 1

  local force=false dry_run=false
  flag::bool --force   && force=true
  flag::bool --dry-run && dry_run=true

  cmd::config::_migrate_impl "$force" "$dry_run"
}