-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from microsoft/dev/sknam/update-commandline-par…
…ameters Update command line parameters and code styles
- Loading branch information
Showing
8 changed files
with
154 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// <copyright file="CommandLineOptions.cs" company="Microsoft Corporation"> | ||
// Copyright (C) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
// </copyright> | ||
|
||
namespace VSConfigFinder | ||
{ | ||
using CommandLine; | ||
|
||
/// <inheritdoc/> | ||
public class CommandLineOptions : ICommandLineOptions | ||
{ | ||
/// <inheritdoc/> | ||
[Option("folderpath", Required = true, HelpText = "The source folder path to use as the root. The search will start from the root towards the bottom.")] | ||
public string FolderPath { get; set; } | ||
|
||
/// <inheritdoc/> | ||
[Option("createfile", Required = false, Default = false, HelpText = "(Default: false) Bool flag that indicates whether the output gets created as a consolidated .vsconfig file instead of the Visual Studio Installer setup command line arguments.\n" + | ||
"If --createFile is passed in, --configOutputPath can also be passed in to indicate the output directory.")] | ||
public bool CreateFile { get; set; } | ||
|
||
/// <inheritdoc/> | ||
[Option("configoutputpath", Required = false, HelpText = "The optional folder path to use if --createFile is passed in. If empty or null, uses the current directory as the output path.\n" + | ||
"This can only be used in conjunction with --createFile. If passed in without --createFile, the parameter will be ignored.")] | ||
public string? ConfigOutputPath { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// <copyright file="ICommandLineOptions.cs" company="Microsoft Corporation"> | ||
// Copyright (C) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
// </copyright> | ||
|
||
namespace VSConfigFinder | ||
{ | ||
/// <summary> | ||
/// The interface for the command line options. | ||
/// </summary> | ||
public interface ICommandLineOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the folder path to be used as the root (starting point) of the search. | ||
/// </summary> | ||
string FolderPath { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the value indicating whether the output gets created as a consolidated .vsconfig file instead of the Visual Studio Installer setup command line arguments. | ||
/// If --createFile is passed in, <see cref="ConfigOutputPath"/> can also be passed in to indicate the output directory.folder path to output the consolidated .vsconfig instead of the command line arguments. | ||
/// </summary> | ||
bool CreateFile { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the optional folder path to use if --createFile is passed in. | ||
/// If empty or null, uses the current directory as the output path. | ||
/// This can only be used in conjunction with --createFile. If passed in without --createFile, the parameter will be ignored. | ||
/// </summary> | ||
string? ConfigOutputPath { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// <copyright file="VSConfig.cs" company="Microsoft Corporation"> | ||
// Copyright (C) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
// </copyright> | ||
|
||
namespace VSConfigFinder | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// The class object that defines a .vsconfig file. | ||
/// </summary> | ||
internal class VSConfig | ||
{ | ||
/// <summary> | ||
/// Gets or sets the version of the .vsconfig file. | ||
/// </summary> | ||
public Version? Version { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the list of component ids. | ||
/// </summary> | ||
public string[]? Components { get; set; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters