Skip to content

Commit

Permalink
Adds KEY for teams in output
Browse files Browse the repository at this point in the history
  • Loading branch information
bougyman committed Feb 1, 2024
1 parent de7515b commit d4f1167
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
linear-cli (0.3.1)
linear-cli (0.3.2)
base64
dry-cli (~> 1.0)
dry-cli-completion (~> 1.0)
Expand Down
6 changes: 4 additions & 2 deletions lib/linear/models/team.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class Team
include SemanticLogger::Loggable

Base = fragment('BaseTeam', 'Team') do
description
id
key
name
createdAt
updatedAt
Expand All @@ -24,11 +26,11 @@ def self.mine
end

def to_s
format('%<title>s', title: data[:name])
format('%<name>s', name:)
end

def full
format('%<id>-12s %<to_s>s', id:, to_s:)
format('%<key>-6s %<to_s>s', key:, to_s:)
end

def members
Expand Down

0 comments on commit d4f1167

Please sign in to comment.