当前位置:网站首页>`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
边栏推荐
- UML sequence diagram [easy to understand]
- Global and Chinese markets for laser assisted liposuction (LAL) devices 2022-2028: Research Report on technology, participants, trends, market size and share
- ArrayBuffer
- Are there any principal guaranteed financial products in 2022?
- 2022-2028 global seeder industry research and trend analysis report
- Launpad | Basics
- What is inner connection and outer connection? What are the uses and benefits
- "How to connect the network" reading notes - Web server request and response (4)
- 20220701 barbarat lemma proof
- 如何编写单元测试用例
猜你喜欢
Langage C - démarrer - base - syntaxe - [opérateur, conversion de type] (vi)
2022-2028 global seeder industry research and trend analysis report
2022-2028 global gasket plate heat exchanger industry research and trend analysis report
2022-2028 global gasket metal plate heat exchanger industry research and trend analysis report
Latex download installation record
C language - Introduction - Foundation - syntax - [identifier, keyword, semicolon, space, comment, input and output] (III)
2022-2028 global strain gauge pressure sensor industry research and trend analysis report
C语言-入门-基础-语法-[运算符,类型转换](六)
HMS core helps baby bus show high-quality children's digital content to global developers
保姆级JDEC增删改查练习
随机推荐
26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
Research Report on the current market situation and development prospects of calcium sulfate whiskers in China (2022 Edition)
What is uid? What is auth? What is a verifier?
Opencv environment construction (I)
C语言-入门-基础-语法-[主函数,头文件](二)
2022-2028 global visual quality analyzer industry research and trend analysis report
Solve the problem of "Chinese garbled MySQL fields"
Trees and graphs (traversal)
You can see the employment prospects of PMP project management
Development trend and market demand analysis report of high purity tin chloride in the world and China Ⓔ 2022 ~ 2027
Global and Chinese market of sampler 2022-2028: Research Report on technology, participants, trends, market size and share
Ultimate bug finding method - two points
2022-2028 global protein confectionery industry research and trend analysis report
HMS core helps baby bus show high-quality children's digital content to global developers
Nurse level JDEC addition, deletion, modification and inspection exercise
Sword finger offer 30 contains the stack of Min function
Awk from entry to earth (18) GAW K line manual
Global and Chinese markets of water heaters in Saudi Arabia 2022-2028: Research Report on technology, participants, trends, market size and share
The child container margin top acts on the parent container
Explanation of closures in golang