linear-cli 0.9.7 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf0bca808a6dea04bcbd0925b6ec7c3a1d4aecc684533f8c5a11b93a0db22621
4
- data.tar.gz: 6f049dfd9148913c6542e1198f3b6a3e55117dd233e3fad8579160ab24bb3643
3
+ metadata.gz: 59eeba3d5e5ade8c7b6ccdf33e2aebbbca35c405f3980a662e880de452dcab8a
4
+ data.tar.gz: 04c211e6d2b03f10defcd187c79639c2f7fa222fdf5966d6657ca422dae1f88c
5
5
  SHA512:
6
- metadata.gz: 3cb9542278055c8aab88f5ebe5fc559fb150aa731e4675f5c4a5a240d4c9d94d565726884a8e5d33c07c16730a40c5ff3cfc30fecf5bc3dbbe52ae0cc0486ab9
7
- data.tar.gz: 17fc8389d583b1e88206df3e4598b624332f1d913f7f47bafd3c79ae826919699b5d4407aa55169577fabea729254457d939d2fc0088ba81ab4e6820eafd9f1f
6
+ metadata.gz: d7cd991a10ad064aef6ebfa991bda5a52134e2077ce4f8d82d8acfafedf97ab22774ee02ff0b7e828625936f52bd10715189cad9133b85bcffd9a17f6c426e1f
7
+ data.tar.gz: 0141416c0501e9f2cde6d1413734b26386e87e25364c7c18fd03c675e14d50f1973030209a73aba3a00d70bc6eeb1288e9a386fc67fb789def9fc9a2258ce232
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.8] - 2024-02-08
6
+ ### Added
7
+ - Added the console subcommand to get a pry console (@bougyman)
8
+
5
9
  ## [0.9.7] - 2024-02-08
6
10
  ### Added
7
11
  - Added the plc wrapper for container running, and ssh for git ops in the container (@bougyman)
@@ -92,8 +96,9 @@
92
96
  ### Added
93
97
  - Added new changelog management system (changelog-rb) (@bougyman)
94
98
 
95
- [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.7...HEAD
96
- [0.9.7]: https://github.com/rubyists/linear-cli/compare/v0.9.5...0.9.7
99
+ [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.8...HEAD
100
+ [0.9.8]: https://github.com/rubyists/linear-cli/compare/v0.9.7...0.9.8
101
+ [0.9.7]: https://github.com/rubyists/linear-cli/compare/v0.9.5...v0.9.7
97
102
  [0.9.5]: https://github.com/rubyists/linear-cli/compare/v0.9.4...v0.9.5
98
103
  [0.9.4]: https://github.com/rubyists/linear-cli/compare/v0.9.3...v0.9.4
99
104
  [0.9.3]: https://github.com/rubyists/linear-cli/compare/v0.9.1...v0.9.3
data/Readme.adoc CHANGED
@@ -6,6 +6,7 @@
6
6
  :tip-caption: 💡
7
7
  :note-caption: 📝
8
8
  :experimental:
9
+ :plc-url: https://raw.githubusercontent.com/rubyists/linear-cli/main/oci/plc
9
10
 
10
11
  A command line interface to https://linear.app.
11
12
 
@@ -17,11 +18,23 @@ You can use the OCI container image to run the CLI without installing it.
17
18
 
18
19
  [source,sh]
19
20
  ----
20
- $ podman run -it --rm -e LINEAR_API_KEY=your-api-key ghcr.io/rubyists/linear-cli:stable lcls <1>
21
+ $ podman run -w /git -v .:/git -v ~/.ssh:/root/.ssh -it --rm -e GITHUB_TOKEN="$GITHUB_TOKEN" -e LINEAR_API_KEY="$LINEAR_API_KEY" ghcr.io/rubyists/linear-cli:stable lcls <1>
21
22
  $ docker run -it --rm -e LINEAR_API_KEY=your-api-key ghcr.io/rubyists/linear-cli:stable lcls <2>
22
23
  ----
23
24
  <1> Podman Usage
24
- <2> Docker Usage
25
+ <2> Docker Usage, without mounting your ssh keys and git dir. This will not be able to do git operations.
26
+
27
+ There is a {plc-url}[helper script] available to wrap this up for you.
28
+
29
+ NOTE: Git commands will require a passphrase for every operation if you are using an ssh key.
30
+
31
+ [source,sh]
32
+ ----
33
+ $ curl -sL https://raw.githubusercontent.com/rubyists/linear-cli/main/oci/plc | sudo tee /usr/local/bin/lc
34
+ $ sudo chmod +x /usr/local/bin/lc
35
+ ----
36
+
37
+ Then you can just run 'lc' to use the CLI.
25
38
 
26
39
  === Gem install (Most should use this)
27
40
 
@@ -0,0 +1,4 @@
1
+ type: Added
2
+ title: >
3
+ Added the console subcommand to get a pry console
4
+ author: bougyman
@@ -0,0 +1 @@
1
+ date: 2024-02-08
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.9.7'
5
+ VERSION = '0.9.9'
6
6
  end
7
7
  end
@@ -5,6 +5,9 @@ module Rubyists
5
5
  module CLI
6
6
  # Module for the _for methods
7
7
  module WhatFor
8
+ # TODO: Make this configurable
9
+ ALLOWED_PR_TYPES = 'bug|fix|sec(urity)|feat(ure)|chore|refactor|test|docs|style|ci|perf'
10
+
8
11
  def editor_for(prefix)
9
12
  file = Tempfile.open(prefix, Rubyists::Linear.tmpdir)
10
13
  TTY::Editor.open(file.path)
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'semantic_logger'
4
+ require 'pry'
5
+
6
+ module Rubyists
7
+ # Namespace for Linear
8
+ module Linear
9
+ # Namespace for CLI
10
+ module CLI
11
+ Console = Class.new Dry::CLI::Command
12
+ # The Console command
13
+ class Console
14
+ include SemanticLogger::Loggable
15
+ include Rubyists::Linear::CLI::CommonOptions
16
+
17
+ desc 'Open a console session'
18
+
19
+ def call(**)
20
+ Dir.mktmpdir('.linear-cli-console') do |dir|
21
+ Rubyists::Linear.tmpdir = dir
22
+ Rubyists::Linear.pry
23
+ end
24
+ end
25
+
26
+ prepend Rubyists::Linear::CLI::Caller
27
+ end
28
+ register 'console', Console, aliases: %w[pry]
29
+ end
30
+ end
31
+ end
@@ -17,7 +17,6 @@ module Rubyists
17
17
  include CLI::SubCommands
18
18
 
19
19
  DESCRIPTION = 'Manage issues'
20
- ALLOWED_PR_TYPES = 'bug|fix|sec(urity)|feat(ure)|chore|refactor|test|docs|style|ci|perf'
21
20
 
22
21
  # Aliases for Issue commands
23
22
  ALIASES = {
data/linear-cli.gemspec CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency 'git', '~> 1.5'
40
40
  spec.add_dependency 'gqli', '~> 1.2'
41
41
  spec.add_dependency 'httpx', '~> 1.2'
42
- spec.add_dependency 'octokit', '~> 5.0'
42
+ spec.add_dependency 'pry-byebug'
43
43
  spec.add_dependency 'semantic_logger', '~> 4.0'
44
44
  spec.add_dependency 'sequel', '~> 5.0'
45
45
  spec.add_dependency 'sqlite3', '~> 1.7'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linear-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -95,19 +95,19 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.2'
97
97
  - !ruby/object:Gem::Dependency
98
- name: octokit
98
+ name: pry-byebug
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '5.0'
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '5.0'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: semantic_logger
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -255,6 +255,8 @@ files:
255
255
  - changelog/0.9.5/tag.yml
256
256
  - changelog/0.9.7/added_the_plc_wrapper_for_container_running_and_ssh_for_git_ops_in_the_container.yml
257
257
  - changelog/0.9.7/tag.yml
258
+ - changelog/0.9.8/added_the_console_subcommand_to_get_a_pry_console.yml
259
+ - changelog/0.9.8/tag.yml
258
260
  - changelog/unreleased/.gitkeep
259
261
  - cinemas/listings.cinema
260
262
  - cinemas/listings.cinema.gif
@@ -278,6 +280,7 @@ files:
278
280
  - lib/linear/cli/version.rb
279
281
  - lib/linear/cli/watcher.rb
280
282
  - lib/linear/cli/what_for.rb
283
+ - lib/linear/commands/console.rb
281
284
  - lib/linear/commands/issue.rb
282
285
  - lib/linear/commands/issue/create.rb
283
286
  - lib/linear/commands/issue/develop.rb