问题描述
我正在使用 Guard(用于 Ruby 项目)并希望配置 terminal-notifier-guard 以显示头盔的自定义图标(而不是默认图标(参见屏幕截图):
我认为应该有一种方法来配置它,但我不知道如何配置。 参考这里是 Guardfile 和 Gemfile:
保护文件:
#include <iostream>
template<int address,int reg>
struct Module
{
static constexpr int address_ = address;
static constexpr int register_ = reg;
};
typedef Module<10,100> Input;
typedef Module<10,1000> Output;
typedef Module<20,100> Phase;
typedef Module<20,1000> Error;
typedef Module<20,10000> LockedIn;
template<class Module>
void send_message(int value)
{
std::cout << "using address: " << Module::address_ << " at register " << Module::register_ << " with value: " << value << std::endl;
}
int main()
{
send_message<Input>(-100);
send_message<Output>(-100);
send_message<Phase>(-100);
send_message<Error>(-100);
send_message<LockedIn>(-100);
}
宝石文件:
guard :rspec,cmd: 'bundle exec rspec --color --format doc',all_on_start: true do
require 'guard/rspec/dsl'
dsl = Guard::RSpec::Dsl.new(self)
# RSpec files
rspec = dsl.rspec
watch(rspec.spec_helper) { rspec.spec_dir }
watch(rspec.spec_support) { rspec.spec_dir }
watch(rspec.spec_files) { rspec.spec_dir }
# Ruby files
ruby = dsl.ruby
dsl.watch_spec_files_for(ruby.lib_files)
end
我需要添加或更改什么才能更改图标?
当我想到这一点时,设置其他字段(例如消息或标题)也会很有趣……
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)