当前位置:网站首页>`Example of mask ` tool use
`Example of mask ` tool use
2022-07-04 09:29:00 【Hu Zhenghui】
install : Core tools
The main tools used are
mask
stay Mac
The installation method in is
brew install mask
install : Tools needed to achieve the default task effect
mask
0.9.0
Default tasks are not supported , So for the time being
Just
.
stay Mac
The installation method in is
brew install just
The relevant code is
_default:
mask mask-choose
The operation mode is
just
install : Interactive selection tool
The interactive selection tool is used in the sample code choose-gui
, stay Mac
The installation method in is
brew install choose-gui
install : Text processing tools
Use... In the sample code awk
Processing text , stay Mac
The installation method in is
brew install gawk
Code location
Implement the default task effect code
publish
Mask
Examples of tool usage
Mission
mask-choose
Use interactive selection tools
choose-gui
Select the commands that can be executed in this document
choose_recipe=$(mask mask-SubCommands-visible | /usr/local/opt/choose-gui/bin/choose)
echo "Choose Recipe: ${choose_recipe}"
task=$(echo "${choose_recipe}" | mask mask-SubCommand-names-extractor)
echo "Task : ${task}"
mask "${task}"
mask-SubCommands
Extract the subcommands in this document
mask --help | mask mask-SubCommands-extractor
mask-SubCommands-visible
Extract the visible subcommands of interactive selection in this document , The beginning of the description is
(hidden)
Mark invisible subcommands in interactive selection , staymask-SubCommand-visible-filter
Medium filtration
mask mask-SubCommands | mask mask-SubCommand-visible-filter
mask-SubCommand-names
The name list of subcommands in this document
mask mask-SubCommands | mask mask-SubCommand-names-extractor
mask-SubCommand-visible-names
In this document, you can interactively select the name list of visible subcommands
mask mask-SubCommands-visible | mask mask-SubCommand-names-extractor
mask-SubCommands-extractor
(hidden) from
mask
Extract subcommands from the help ofawk
Script , Not visible in the interactive selection list
{
if ("SubCommands" == section)
{
sub(/^[ ]+/, "");
print;
}
}
{
if ("SUBCOMMANDS:" == $0)
section = "SubCommands"
}
mask-SubCommand-visible-filter
(hidden) Filter the beginning of the description with
(hidden)
Mark the... Of subcommands that are not visible in interactive selectionawk
Script , Not visible in the interactive selection list
{
if ("(hidden)" != $2)
print;
}
mask-SubCommand-names-extractor
(hidden) Extract the name of the subcommand
awk
Script
{
print $1;
}
mask-draft-dir
Scripts for personal local use , Readers please ignore
jump cd mask-draft
code
Scripts for personal local use , Readers please ignore
root_dir=`pwd`
code_workspace="${root_dir}/mask.code-workspace"
if [ -f "${code_workspace}" ]; then
code "${code_workspace}";
else
code "${root_dir}";
fi
边栏推荐
- HMS core helps baby bus show high-quality children's digital content to global developers
- Global and Chinese markets of hemoglobin analyzers in care points 2022-2028: Research Report on technology, participants, trends, market size and share
- Basic data types in golang
- Explanation of closures in golang
- 2022-2028 global edible probiotic raw material industry research and trend analysis report
- Markdown syntax
- The child container margin top acts on the parent container
- Report on the development trend and prospect trend of high purity zinc antimonide market in the world and China Ⓕ 2022 ~ 2027
- Rules for using init in golang
- Global and Chinese markets for laser assisted liposuction (LAL) devices 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
C语言-入门-基础-语法-数据类型(四)
Awk from entry to earth (12) awk can also write scripts to replace the shell
Dede plug-in (multi-function integration)
Latex download installation record
2022-2028 global edible probiotic raw material industry research and trend analysis report
C language - Introduction - Foundation - syntax - [identifier, keyword, semicolon, space, comment, input and output] (III)
Reload CUDA and cudnn (for tensorflow and pytorch) [personal sorting summary]
2022-2028 global intelligent interactive tablet industry research and trend analysis report
If you can quickly generate a dictionary from two lists
Jianzhi offer 09 realizes queue with two stacks
随机推荐
Jianzhi offer 09 realizes queue with two stacks
Deadlock in channel
Global and Chinese markets of thrombography hemostasis analyzer (TEG) 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of bipolar generators 2022-2028: Research Report on technology, participants, trends, market size and share
Research and investment strategy report of China's electronic hydrogen peroxide industry (2022 Edition)
PMP registration process and precautions
Markdown syntax
What exactly is DAAS data as a service? Don't be misled by other DAAS concepts
《网络是怎么样连接的》读书笔记 - 集线器、路由器和路由器(三)
Investment analysis and future production and marketing demand forecast report of China's paper industry Ⓥ 2022 ~ 2028
Awk from getting started to digging in (4) user defined variables
Opencv environment construction (I)
26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
Awk from entry to earth (7) conditional statements
Report on research and investment prospects of polyglycolic acid industry in China (2022 Edition)
2022-2028 research and trend analysis report on the global edible essence industry
Analysis report on the production and marketing demand and investment forecast of tellurium dioxide in the world and China Ⓣ 2022 ~ 2027
[on February 11, 2022, the latest and most fully available script library collection of the whole network, a total of 23]
Awk from entry to soil (5) simple condition matching
Global and Chinese markets for laser assisted liposuction (LAL) devices 2022-2028: Research Report on technology, participants, trends, market size and share