windows 下安装Chocolatey

简介

Chocolatey 是一个强大的软件包管理工具 ,类似 Linux 的 apt-get

以 Win10 为例

  1. 启动 PowShell
  2. 在官网上复制命令

https://chocolatey.org/install#installing-chocolatey

1
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

图片.png

查看版本

choco -v

安装 Graphviz , 画 UML 的图形库

1
2
3
choco search graphviz
choco install -y Graphviz
choco upgrade -y all

用 VSCode 编写,PlantUML

1
2
3
4
5
6
7
8
9
10
11
12
13
14
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response

interface first{

}
class test{

}
@enduml
1
alt + d 看x

图片.png