forked from microsoft/vcpkg-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted from microsoft#690 * Deleted a bunch of unreferenced files. * Fixed files that were CRLF->LF. * Fixed a few spelling mistakes.
- Loading branch information
1 parent
dfb8280
commit a45f1ac
Showing
22 changed files
with
64 additions
and
234 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
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 |
---|---|---|
|
@@ -52,4 +52,4 @@ export function count(num: number) { | |
|
||
export function position(text: string) { | ||
return grey(`${text}`); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { i } from '../../i18n'; | ||
import { session } from '../../main'; | ||
import { Uri } from '../../util/uri'; | ||
import { resolvePath } from '../command-line'; | ||
import { Switch } from '../switch'; | ||
|
||
export class Json extends Switch { | ||
switch = 'json'; | ||
override multipleAllowed = false; | ||
get help() { | ||
return [ | ||
i`Dump environment variables and other properties to a json file with the path provided by the user.` | ||
]; | ||
} | ||
|
||
override get value(): Uri | undefined { | ||
const v = resolvePath(super.value); | ||
return v ? session.fileSystem.file(v) : undefined; | ||
} | ||
|
||
} | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { i } from '../../i18n'; | ||
import { session } from '../../main'; | ||
import { Uri } from '../../util/uri'; | ||
import { resolvePath } from '../command-line'; | ||
import { Switch } from '../switch'; | ||
|
||
export class Json extends Switch { | ||
|
||
switch = 'json'; | ||
override multipleAllowed = false; | ||
get help() { | ||
return [ | ||
i`Dump environment variables and other properties to a json file with the path provided by the user.` | ||
]; | ||
} | ||
|
||
override get value(): Uri | undefined { | ||
const v = resolvePath(super.value); | ||
return v ? session.fileSystem.file(v) : undefined; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { ProfileBase } from './profile-base'; | ||
import { GitRegistry } from './registries/git-registry'; | ||
import { LocalRegistry } from './registries/local-registry'; | ||
import { NugetRegistry } from './registries/nuget-registry'; | ||
import { Dictionary } from '../collections'; | ||
import { Contact } from './contact'; | ||
import { Demands } from './demands'; | ||
import { ArtifactRegistry } from './registries/artifact-registry'; | ||
|
||
type Primitive = string | number | boolean; | ||
|
||
/** | ||
* a profile defines the requirements and/or artifact that should be installed | ||
* | ||
* Any other keys are considered HostQueries and a matching set of Demands | ||
* A HostQuery is a query string that can be used to qualify | ||
* 'requires'/'see-also'/'exports'/'install'/'use' objects | ||
* | ||
* @see the section below in this document entitled 'Host/Environment Queries" | ||
*/ | ||
export type Profile = ProfileBase; | ||
|
||
export type RegistryDeclaration = NugetRegistry | LocalRegistry | GitRegistry; | ||
export interface Profile extends Demands { | ||
/** any contact information related to this profile/package */ | ||
contacts: Dictionary<Contact>; // optional | ||
|
||
/** artifact registries list the references necessary to install artifacts in this file */ | ||
registries?: Dictionary<ArtifactRegistry>; | ||
|
||
/** global settings */ | ||
globalSettings: Dictionary<Primitive | Record<string, unknown>>; | ||
|
||
/** is this document valid */ | ||
readonly isFormatValid: boolean; | ||
|
||
/** parsing errors in this document */ | ||
readonly formatErrors: Array<string>; | ||
} | ||
|
||
|
||
/** values that can be either a single string, or an array of strings */ | ||
export type StringOrStrings = string | Array<string>; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 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
Oops, something went wrong.