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
#!/usr/bin/env -S cargo +nightly -Zscript | |
--- | |
[package] | |
edition = "2021" | |
[dependencies] | |
cargo-util-schemas = "0.1.0" | |
serde = { version = "1.0.197", features = ["derive"] } | |
serde_json = "1.0.114" | |
toml = "0.8.10" |
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
#Requires -Version 6.0 | |
using namespace System.Security.Cryptography | |
using namespace System.Text | |
function Protect-Data { | |
[CmdletBinding(DefaultParameterSetName = 'Path')] | |
[OutputType([byte[]])] | |
param ( | |
[Parameter(ParameterSetName = 'Value', Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] |
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
#Requires -Version 7.2 | |
[CmdletBinding(DefaultParameterSetName = 'Path')] | |
param ( | |
[Parameter(Mandatory, Position = 0, ParameterSetName = 'Path', ValueFromPipeline, ValueFromPipelineByPropertyName)] | |
[string[]] $Path, | |
[Parameter(Mandatory, ParameterSetName = 'LiteralPath', ValueFromPipelineByPropertyName)] | |
[string[]] $LiteralPath, |
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
//go:build windows | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" |
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
//go:build windows | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" |
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
azure-identity==1.12.0 | |
azure-ai-language-conversations==1.0.0 | |
azure-ai-language-questionanswering==1.1.0 |
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
use clap::Parser; | |
use markdown::{tokenize, Block, Span}; | |
use serde::Deserialize; | |
use std::fs::File; | |
use std::io::Read; | |
use std::path::PathBuf; | |
fn main() { | |
let args = Args::parse(); | |
let mut f = File::open(args.file).expect("failed to open autorest config"); |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"text/template" |
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
use std::path::PathBuf; | |
use std::result::Result; | |
use std::{error::Error, ops::Index}; | |
use clap::{arg, command, value_parser, Arg}; | |
use msi::{self, Expr, Select, Value}; | |
fn main() -> Result<(), Box<dyn Error>> { | |
let matches = command!() | |
.arg( |
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
[CmdletBinding(DefaultParameterSetName = 'Path')] | |
param ( | |
[Parameter(ParameterSetName = 'Path', Position = 0, Mandatory = $true)] | |
[string[]] $Path, | |
[Parameter(ParameterSetName = 'LiteralPath', Mandatory = $true, ValueFromPipelineByPropertyName = $true)] | |
[Alias('PSPath')] | |
[string[]] $LiteralPath | |
) | |
NewerOlder