Browse Source

changes some terminology, moves client into project root

master
apoc 1 month ago
parent
commit
95488ffc32
5 changed files with 10 additions and 8 deletions
  1. 1
    1
      .gitignore
  2. 0
    0
      Gemfile
  3. 0
    0
      client.rb
  4. 3
    1
      docs/issue-tracker.org
  5. 6
    6
      server/main.rb

+ 1
- 1
.gitignore View File

@@ -1 +1 @@
client/token.txt
token.txt

client/Gemfile → Gemfile View File


client/branch → client.rb View File


+ 3
- 1
docs/issue-tracker.org View File

@@ -2,7 +2,7 @@

** Open
*** TODO The client wrapper
**** Issue
**** Issue

The client should have a wrapper for functionality and command aliases.
As noted in the terminology.md file, typing out "{program} problem", "{program} solution" into the CLI will, after a while, train the user to think in terms of problems and solutions.
@@ -19,10 +19,12 @@

At the time of opening the issue the latest version of the code is 1.2.1;
Making this change would be a minor, backward compatible change.

*** TODO Look into using org-mode orgfiles
**** Issue

Perhaps there's no need to reinvent the wheel, building the exocortex functionality on top of org-mode could suffice.

*** TODO Moving the server to rails
**** Issue


+ 6
- 6
server/main.rb View File

@@ -230,7 +230,7 @@ class Main
#input = crypt input
input = parse input.split(' ')
case input.command
when 'grow'
when 'task'

#description = input.params.split(' ')[0..3].join(' ')
Problem.make input.params, current, branch
@@ -247,7 +247,7 @@ class Main

return { message: "tags: #{Tag.pluck('name')}" }.to_json

when 'regrow'
when 'edit'

current.update problem: input.params
return status
@@ -258,7 +258,7 @@ class Main
opener.update problem: "#{opener.problem}\n#{Time.new}: #{input.params}" unless input.params.strip == ''
return { problems: [opener] }.to_json

when 'blossom'
when 'completed'

solution = input.params.strip == '' ?
'ok' : input.params
@@ -276,17 +276,17 @@ class Main
current.delete
return status

when 'walk'
when 'next'

branch = walk input.params
return status

when 'back'
when 'prev'

branch = walk input.params, true
return status

when 'off'
when 'also'

parent = current.dup
delta = Problem.pluck('z').max.to_i

Loading…
Cancel
Save