Exemple #1
0
        private static Command CreateCommand_Asset_Create_InputMapping()
        {
            var command = new Command("input-mapping", "Create default input mapping asset file.");

            command.AddOption(CreateOption_KeepAssetId());
            command.Handler = CommandHandler.Create <bool, IConsole>((keepAssetId, console) =>
            {
                console.Out.WriteLine("Creating input mapping asset file.");
                var createdFile = AssetTool.CreateInputMappingAsset(keepAssetId);
                console.Out.WriteLine($"Input mapping asset file created: {createdFile}");
            });

            return(command);
        }