Commit graph

29 commits

Author SHA1 Message Date
d1eb7d4c37 Check argument numbers for each command
This should keep error conditions from being signalled when someone
enters the wrong number of arguments.
2013-03-23 18:40:54 +01:00
3b165c81d9 Add --script option
When passing in the --script option all output will be formatted in a
machine-readable way.
2013-03-23 17:58:31 +01:00
50bb0f58ea Simplify get-bookmarks 2013-03-23 17:57:35 +01:00
2a37c88b34 Fix typo 2013-03-23 16:53:08 +01:00
977627a8af Simplify the exists command 2013-03-23 16:50:18 +01:00
fdce2ed81c Hide command detail
Hide the fact that a command is just of the form NAME-command by
abstracting it away into a macro.
2013-03-23 16:37:41 +01:00
c7f9d27638 Improve help messages
The `help' command can now be used to view help about other commands.
2013-03-23 16:31:22 +01:00
cbe1830f83 Add exists command
This command shows whether or not the given url is known to CLark.
2013-03-23 13:38:19 +01:00
dd47751a43 Place the database in XDG_DATA_HOME if possible 2013-03-23 13:24:43 +01:00
9e747fde54 Add some Makefile targets 2013-03-23 01:05:05 +01:00
080bb351b8 Add some docs 2013-03-23 01:00:14 +01:00
0b3e5c09d3 Add GPLv3 license info 2013-03-23 00:51:31 +01:00
89adbb11b5 Add conkeror module 2013-03-23 00:20:27 +01:00
02be3af2fd Move lisp sources to lisp/ 2013-03-23 00:15:52 +01:00
02a823cc28 Add macro defcommand
The defcommand macro defines a new command-line command. It also sets
up some variables for the help function.
2013-03-22 20:11:31 +01:00
0adccf6b3e Add README 2013-03-22 02:44:09 +01:00
671d0fdcc7 Add search command 2013-03-22 02:23:42 +01:00
153c26be43 Declare ignored variables
Keeps style-warning conditions from being raised.
2013-03-21 23:53:35 +01:00
aebd53868a Disable debugger for executable 2013-03-21 23:43:09 +01:00
a664f8f6e8 Separate help texts from help command 2013-03-21 23:42:54 +01:00
99e7d7e303 Switch date and name
Oops, these were being passed-in in the wrong order.
2013-03-21 23:30:52 +01:00
aff3e1536a Update usage info 2013-03-21 22:35:54 +01:00
ca72ca30d0 Add add-command
This command adds a new bookmark to the database and associates any
given tags with the bookmark, adding them, if necessary, as well.
2013-03-21 22:31:42 +01:00
14aa128643 Extract parse-args from clark
Keep functions nice and small.
2013-03-21 21:39:56 +01:00
f70b12c1c9 Reorder functions, add docstring to clark 2013-03-21 21:29:43 +01:00
0e6e795681 Move intern into make-command-name 2013-03-21 21:27:17 +01:00
6d1a3b02e0 Make it do something
- Add constant `*version*' which contains the version number of the
  project.

- Change `db-connect' to `check-db'. Update to using sqlite functions
  instead of cl-sql ones.

- Move the bookmark collection loop to `get-bookmarks'.

- When starting up, if the length of args is greater than 1 check if
  the given option is a known "command" and if so, call it with the
  command line arguments (minus the first). Otherwise show all the
  bookmarks.
2013-03-21 00:54:06 +01:00
940d990418 Make clark target depend on make-image.lisp 2013-03-21 00:49:58 +01:00
94f56cd473 Initial commit 2013-03-20 21:58:10 +01:00