code_snippet_manager 0.1.0 → 0.1.1

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: 8556cd81e2a3411dff21d84be7d43f8adbd04acec50eb0e20b48b9e556dfc2c0
4
- data.tar.gz: 8ab187deeb6af5bec2e8d26f58cdfde7b114f28e8add88e8b5ea0767858ed2a4
3
+ metadata.gz: b205c39884940619838c148bde4136bdaea5640d516ef7abbb732c4a2bc94d06
4
+ data.tar.gz: 4e9e40a1fab8cba51d7cdffba34ccc58de6d1b95a92378feaf445ffbb8de6c2a
5
5
  SHA512:
6
- metadata.gz: 25c24100f2d4bed65f23bbeb077be61dba95f9981e8a1e0d749aadcf67fcd6fadbc659aa2235215c6b6cc67ba4b9a2fc16e1b242c9846018b319853e936cb150
7
- data.tar.gz: bc08aa3db5c3745fac23b53bba9bd77159848c4b56e526c6a6e769d33ad7310adf75d79702fad92c464de9457d815200965d6aadab7263c270932cc7e0fc246d
6
+ metadata.gz: e88293a742b4e3d55317075e94200d98e634f519d9ba52e2a1cb803565bff31b7b3fb1348c3305a140e767393f2d7f3e896598fb245249e48722dcade4d6253c
7
+ data.tar.gz: e07a988128bfecfd07d1e891a9a4775776ebfdfddc5f51954a824dfe207ffc6658b0d024ef276ee1c8a7594c4f999c2dd023edb38128897175045bb1ee3563e0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodeSnippetManager
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -1,8 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "code_snippet_manager/version"
4
+ require "tty-prompt"
4
5
 
5
6
  module CodeSnippetManager
6
- class Error < StandardError; end
7
- # Your code goes here...
7
+ def self.run
8
+ prompt = TTY::Prompt.new
9
+ choice = prompt.select("Choose your action:") do |menu|
10
+ menu.choice name: "Add a new snippet", value: :add
11
+ menu.choice name: "List all snippets", value: :list
12
+ # Add more options here
13
+ end
14
+
15
+ case choice
16
+ when :add
17
+ puts 'add'
18
+ # Implementation for adding a new snippet
19
+ when :list
20
+ puts 'list'
21
+ # Implementation for listing all snippets
22
+ # More cases as necessary
23
+ end
24
+ end
8
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_snippet_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jovan-sremacki