Class: EditorWish

Inherits:
Djinni::Wish
  • Object
show all
Defined in:
lib/zoom/wish/editor_wish.rb

Instance Method Summary collapse

Instance Method Details

#aliasesObject



4
5
6
# File 'lib/zoom/wish/editor_wish.rb', line 4

def aliases
    return ["editor"]
end

#descriptionObject



8
9
10
# File 'lib/zoom/wish/editor_wish.rb', line 8

def description
    return "Configure editor"
end

#execute(args, djinni_env = {}) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/zoom/wish/editor_wish.rb', line 12

def execute(args, djinni_env = {})
    if (args.empty?)
        usage
        return
    end

    djinni_env["config"].use_editor(args)
end

#usageObject



21
22
23
24
# File 'lib/zoom/wish/editor_wish.rb', line 21

def usage
    puts("#{aliases.join(", ")} <value>")
    puts("    #{description}.")
end