Manage fun content.
When the pull request for new version is published, you can install it via winget:
winget install --id DuckStudio.FCM -s winget -eLinux
I use WSL2 Ubuntu + fish shell + bash.
You can use ANY editor you like, not just limited to nano.
Before continuing, please install the .NET 10 SDK.
git clone https://github.com/DuckDuckStudio/fcm.git # Add the "-b <version>" parameter to specify the version
cd src/fcm/[!TIP] You DON'T necessarily have to strictly follow the examples given here; you can refer to the
dotnet publishcommand documentation to combine new command.
The example here uses the Release build configuration, specifying the target operating system as Linux, single file, and self-contained runtime.
dotnet publish fcm --configuration Release --os linux -p:PublishSingleFile=true --self-containedPlease replace the path in the code with the path to your actual publish folder.
For fish:
nano ~/.config/fish/config.fish
# Add the following code
# set -gx PATH "/path/to/repo/fcm/src/fcm/bin/Release/net10.0/linux-x64/publish/" $PATHFor bash:
nano ~/.bashrc
# Add the following code
# export PATH="/path/to/repo/fcm/src/fcm/bin/Release/net10.0/linux-x64/publish/:$PATH"Then reload the configuration with the source command.
You can start by importing the fun.txt file from the repository.
# Assuming you have already cloned and cd into the repository directory
fcm import fun.txtThen get a random one:
# No parameters is equivalent to fcm get
fcmFor more help information, please run fcm --help.
This program is licensed under the Apache License 2.0.
This program would not be possible without the following projects: Thank you to the open source community!
| Package | License |
|---|---|
| Spectre.Console | MIT License |
| DuckStudio.CatFood | Apache License 2.0 |
For the license files related to these dependencies, please see NOTICE.md.