Skip to content

Commit

Permalink
Remove listboards option (nanoframework#220)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored May 31, 2023
1 parent a6f29ec commit 48c2c13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 30 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,16 +413,16 @@ You can list the supported targets, and their version using the `--platform` par
List packages available for ESP32 targets:

```console
nanoff --listboards --platform esp32
nanoff --listtargets --platform esp32
```

List packages available for STM32 targets:

```console
nanoff --listboards --platform stm32
nanoff --listtargets --platform stm32
```

If you use the `--listtargets` switch in conjunction with `--preview`, you'll get the list of packages that maybe used for experimental or major feature changes.
If you use the `--listtargets` switch in conjunction with `--preview`, you'll get the list of available firmware packages that are available with experimental or major feature changes.

## Clear cache location

Expand Down
7 changes: 0 additions & 7 deletions nanoFirmwareFlasher.Tool/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,6 @@ public class Options
HelpText = "Skip execution of sanity check if the requested target fits the connected device. This is a best effort validation and it's NOT guaranted to be fail safe.")]
public bool FitCheck { get; set; }

[Option(
"listboards",
Required = false,
Default = false,
HelpText = "List the available boards and versions available on CloudSmith.")]
public bool ListBoards { get; set; }

[Option(
"listtargets",
Required = false,
Expand Down
22 changes: 2 additions & 20 deletions nanoFirmwareFlasher.Tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,27 +260,9 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)

#region list targets

// First check if we are asked for the list of boards
if (o.ListTargets ||
o.ListBoards)
// First check if we are asked for the list of available targets
if (o.ListTargets)
{
if (o.ListBoards && _verbosityLevel > VerbosityLevel.Quiet)
{
// warn about deprecated option
Console.ForegroundColor = ConsoleColor.Yellow;

Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("********************************** WARNING **********************************");
Console.WriteLine("The --listboards option is deprecated and will be removed in a future version");
Console.WriteLine("Please use --listtargets option instead");
Console.WriteLine("*****************************************************************************");
Console.WriteLine("");
Console.WriteLine("");

Console.ForegroundColor = ConsoleColor.White;
}

// get list from REFERENCE targets
var targets = FirmwarePackage.GetTargetList(
false,
Expand Down

0 comments on commit 48c2c13

Please sign in to comment.