Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

有趣的内容管理器

English

管理你的有趣的内容。

安装

当更新拉取请求发布后,你可以通过 winget 安装:

winget install --id DuckStudio.FCM -s winget -e
Linux

Linux

我使用 WSL2 Ubuntu + fish shell + bash
你可以使用任意你喜欢的编辑器而不只限于 nano
在继续前,请先安装 .NET 10 SDK

克隆仓库

git clone https://github.com/DuckDuckStudio/fcm.git # 添加 "-b <版本号>" 参数指定版本
cd src/fcm/

生成项目

[!TIP]
你不一定要严格按照这里给出的示例,参阅 dotnet publish 命令文档可以组合出新的命令。

这里的示例使用 Release 生成配置,指定目标操作系统 linux,单文件,自包含运行时。

dotnet publish src/fcm/fcm.csproj --configuration Release --os linux -p:PublishSingleFile=true --self-contained

添加到 PATH

请将代码中的路径替换为你实际发布文件夹的路径。

对于 fish:

nano ~/.config/fish/config.fish
# 添加以下代码
# set -gx PATH "/path/to/repo/fcm/src/fcm/bin/Release/net10.0/linux-x64/publish/" $PATH

对于 bash:

nano ~/.bashrc
# 添加以下代码
# export PATH="/path/to/repo/fcm/src/fcm/bin/Release/net10.0/linux-x64/publish/:$PATH"

然后用 source 命令重新加载配置。

使用

你可以先导入一份仓库中的 fun.txt:

# 假设你已经克隆并 cd 进仓库目录
fcm import fun.txt

然后随机一条看看:

# 不加参数等效于 fcm get
fcm

有关更多帮助信息,请运行 fcm --help 查看。

许可

本程序使用 Apache License 2.0

依赖

本程序的实现离不开这些项目,感谢开源社区!

许可证
Spectre.Console MIT License
DuckStudio.CatFood Apache License 2.0

有关这些依赖的许可文件,请参见 NOTICE.md

About

管理有趣的内容。

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages