File: command.rb

package info (click to toggle)
mikutter 5.0.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,700 kB
  • sloc: ruby: 21,307; sh: 181; makefile: 19
file content (16 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-

module Plugin::Quickstep
  class Command < Retriever::Model
    field.string :slug, required: true
    field.string :name, required: true
    field.string :role, required: true
    field.bool :visible

    register :quickstep_command, name: Plugin[:quickstep]._('コマンド')

    def title
      name
    end
  end
end