Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Collection files
privacy.sexy is a data-driven application that reads YAML files.
This document details the structure and syntax of the YAML files located in
application/collections, which form the backbone of the application's data model. The YAML schema.schema.yamlis provided to provide better IDE support and be used in automated validations.Related documentation:
Collections READMEincludes references to code as documentation.Objects
CollectionCollectionsyntaxos:string(required)OperatingSystem.tsfor possible values.actions: [Category, ... ](required)functions: [Function, ... ]scripting:ScriptMetadata(required)Executables
They represent independently executable actions with documentation and reversibility.
An Executable is a logical entity that can
docsproperty for documentation.It's either Category or a Script.
CategoryRepresents a logical group of scripts and subcategories.
Categorysyntaxcategory:string(required)children: [Category|Script, ... ](required)docs:string|[string, ... ]ScriptRepresents an individual tweak.
Types (like functions):
codeand optionalrevertCode.call, but notcodeorrevertCode.📖 For detailed guidelines, see Script Guidelines.
Scriptsyntaxname:string(required)code:string(conditionally required)revertCode.call, define eithercodewith optionalrevertCodeorcall.revertCode:stringcode.call, definerevertCodewithcodeorcall.call:FunctionCall|[FunctionCall, ... ](conditionally required)codeorrevertCode, definecodewith optionalrevertCodeorcall.docs:string|[string, ... ]recommend:"standard"|"strict"|undefined(default:undefined)undefined.📖 For detailed guidelines, see Script Guidelines.
FunctionCallSpecifies a function call. It may require providing argument values to its parameters.
FunctionCallsyntaxfunction:string(required)functionsproperty of Collection.parameters:[parameterName: parameterValue, ... ]Functioncodeand optionallyrevertCode, but notcall.call, but notcodeorrevertCode.Functionsyntaxname:string(required)uninstallStoreApp).parameters:[FunctionParameter, ... ](conditionally required)FunctionCallor expressions (templating).code:string(conditionally required)revertCode.call, define eithercodewith optionalrevertCodeorcall.revertCode:stringcode.call, definerevertCodewithcodeorcall.call:FunctionCall|[FunctionCall, ... ](conditionally required)codeorrevertCode, definecodewith optionalrevertCodeorcall.FunctionParameterFunctionCallprovides argument values by a caller.FunctionParametersyntaxname:string(required)optional:boolean(default:false)falsei.e. an argument value is not optional then it expects a non-empty value for the variable.withexpression.trueif you will use its argument value conditionally;falsefor verbosity or do not define it as default value isfalseanyway.ScriptMetadataSets global scripting properties for a Collection.
ScriptMetadatasyntaxlanguage:string(required)ScriptLanguage.tsenumeration for allowed values.startCode:string(required)$homepage,$version,$datevia parameter substitution code syntax such asWelcome to {{ $homepage }}!.endCode:string(required)$homepage,$version,$datevia parameter substitution code syntax such asWelcome to {{ $homepage }}!.