Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions doc/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@
* Bumped the winget version to 1.28 to match the package version.
* Additional [options for limiting the size of log files](https://github.com/microsoft/winget-cli/blob/master/doc/Settings.md#file).

# Experimental Feature: 'sourceEdit'
# Feature: 'source edit'
New feature that adds an 'edit' subcommand to the 'source' command. This can be used to set an explicit source to be implicit and vice-versa. For example, with this feature you can make the 'winget-font' source an implicit source instead of explicit source.

To enable this feature, add the 'sourceEdit' experimental feature to your settings.
```
"experimentalFeatures": {
"sourceEdit": true
},
```
To use the feature, try `winget source edit winget-font` to set the Explicit state to the default.

## Bug Fixes
Expand Down
10 changes: 0 additions & 10 deletions doc/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,6 @@ This feature enables support for fonts via `winget settings`. The `winget font l
},
```

### sourceEdit

This feature enables support for additional source command improvements via `winget settings`. The `winget source edit` command will become available with this feature.

```json
"experimentalFeatures": {
"sourceEdit": true
},
```

### listDetails

This feature enables support for displaying detailed output from the `list` command. Rather than a table view of the results, when the `--details` option is provided
Expand Down
5 changes: 0 additions & 5 deletions schemas/JSON/settings/settings.schema.0.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,6 @@
"description": "Enable detailed output option for list command",
"type": "boolean",
"default": false
},
"sourceEdit": {
"description": "Enable source edit command",
"type": "boolean",
"default": false
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/AppInstallerCLICore/Commands/SourceCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ namespace AppInstaller::CLI
void SourceEditCommand::ExecuteInternal(Context& context) const
{
context <<
Workflow::EnsureFeatureEnabled(Settings::ExperimentalFeature::Feature::SourceEdit) <<
Workflow::EnsureRunningAsAdmin <<
Workflow::GetSourceListWithFilter <<
Workflow::EditSources;
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLICore/Commands/SourceCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace AppInstaller::CLI

struct SourceEditCommand final : public Command
{
SourceEditCommand(std::string_view parent) : Command("edit", { "config", "set" }, parent, Settings::ExperimentalFeature::Feature::SourceEdit) {}
SourceEditCommand(std::string_view parent) : Command("edit", { "config", "set" }, parent) {}

std::vector<Argument> GetArguments() const override;

Expand Down
5 changes: 0 additions & 5 deletions src/AppInstallerCommonCore/ExperimentalFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ namespace AppInstaller::Settings
return userSettings.Get<Setting::EFFonts>();
case ExperimentalFeature::Feature::ListDetails:
return userSettings.Get<Setting::EFListDetails>();
case ExperimentalFeature::Feature::SourceEdit:
return userSettings.Get<Setting::EFSourceEdit>();
default:
THROW_HR(E_UNEXPECTED);
}
Expand Down Expand Up @@ -83,9 +81,6 @@ namespace AppInstaller::Settings
return ExperimentalFeature{ "Font", "fonts", "https://aka.ms/winget-settings", Feature::Font };
case Feature::ListDetails:
return ExperimentalFeature{ "List Details", "listDetails", "https://aka.ms/winget-settings", Feature::ListDetails };
case Feature::SourceEdit:
return ExperimentalFeature{ "Source Editing", "sourceEdit", "https://aka.ms/winget-settings", Feature::SourceEdit };

default:
THROW_HR(E_UNEXPECTED);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ namespace AppInstaller::Settings
Resume = 0x2,
Font = 0x4,
ListDetails = 0x8,
SourceEdit = 0x10,
Max, // This MUST always be after all experimental features

// Features listed after Max will not be shown with the features command
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCommonCore/Public/winget/UserSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ namespace AppInstaller::Settings
EFResume,
EFFonts,
EFListDetails,
EFSourceEdit,
// Telemetry
TelemetryDisable,
// Install behavior
Expand Down Expand Up @@ -166,7 +165,6 @@ namespace AppInstaller::Settings
SETTINGMAPPING_SPECIALIZATION(Setting::EFResume, bool, bool, false, ".experimentalFeatures.resume"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFFonts, bool, bool, false, ".experimentalFeatures.fonts"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFListDetails, bool, bool, false, ".experimentalFeatures.listDetails"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFSourceEdit, bool, bool, false, ".experimentalFeatures.sourceEdit"sv);
// Telemetry
SETTINGMAPPING_SPECIALIZATION(Setting::TelemetryDisable, bool, bool, false, ".telemetry.disable"sv);
// Install behavior
Expand Down
1 change: 0 additions & 1 deletion src/AppInstallerCommonCore/UserSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ namespace AppInstaller::Settings
WINGET_VALIDATE_PASS_THROUGH(EFResume)
WINGET_VALIDATE_PASS_THROUGH(EFFonts)
WINGET_VALIDATE_PASS_THROUGH(EFListDetails)
WINGET_VALIDATE_PASS_THROUGH(EFSourceEdit)
WINGET_VALIDATE_PASS_THROUGH(AnonymizePathForDisplay)
WINGET_VALIDATE_PASS_THROUGH(TelemetryDisable)
WINGET_VALIDATE_PASS_THROUGH(InteractivityDisable)
Expand Down