{"id":17003891,"url":"https://github.com/cldwalker/leinfiles","last_synced_at":"2025-04-12T06:33:50.633Z","repository":{"id":3330288,"uuid":"4373933","full_name":"cldwalker/leinfiles","owner":"cldwalker","description":"Handy functions for a clojure repl - most likely lein repl","archived":false,"fork":false,"pushed_at":"2015-05-22T21:35:04.000Z","size":151,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T18:53:02.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cldwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-18T21:57:17.000Z","updated_at":"2017-03-05T08:25:06.000Z","dependencies_parsed_at":"2022-08-06T14:00:09.854Z","dependency_job_id":null,"html_url":"https://github.com/cldwalker/leinfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fleinfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fleinfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fleinfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fleinfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldwalker","download_url":"https://codeload.github.com/cldwalker/leinfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530272,"owners_count":21119586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T04:33:07.897Z","updated_at":"2025-04-12T06:33:50.570Z","avatar_url":"https://github.com/cldwalker.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nHandy functions to have while in a Clojure repl - a beefed up clojure.repl\n\n## Setup\n\nSince [leiningen 2](https://github.com/technomancy/leiningen) is the most common way to start a\nclojure repl, let's assume it's installed for setup.\n\nBasic setup:\n\n    $ git clone https://github.com/cldwalker/leinfiles.git\n    $ cd leinfiles\n    $ ./install.sh\n\n    # Until desc is a clojar\n    $ git clone https://github.com/cldwalker/desc\n    $ cd desc \u0026\u0026 lein install\n\nFor older versions of leiningen or if using a different repl, you can always explicitly load the\nfile from the repl:\n\n    # Use your full home path\n    \u003e\u003e (load-file \"~/.lein/user.clj\")\n\n## Usage\n\nFunctions are defined in the user namespace:\n\n```sh\n$ lein repl\nLoaded user.clj!\n# List available fns\nuser=\u003e (vars-meta)\n+------+---------------------+---------+------+--------------------------+------------------------+-----------------------------------------------------------------------------------------------------+-------+--+\n| ns   | name                | dynamic | line | file                     | arglists               | doc                                                                                                 | macro |  |\n+------+---------------------+---------+------+--------------------------+------------------------+-----------------------------------------------------------------------------------------------------+-------+--+\n| user | *display*           | true    | 41   | /Users/me/.lein/user.clj |                        |                                                                                                     |       |  |\n| user | cdoc                |         | 1    | NO_SOURCE_PATH           | ([v] [ns-str var-str]) | Lazily checks if the clojuredocs client is available, and uses it to\\n  retrieve examples if it is. | true  |  |\n| user | class-paths         |         | 84   | /Users/me/.lein/user.clj | ([])                   | Prints list of class paths                                                                          |       |  |\n| user | clojuredocs         |         | 1    | NO_SOURCE_PATH           | ([v] [ns-str var-str]) | Lazily checks if the clojuredocs client is available, and uses it to\\n  retrieve examples if it is. | true  |  |\n| user | display             |         | 43   | /Users/me/.lein/user.clj | ([data \u0026 options])     | Pretty prints data or returns it depending on value of *display*. Default is to print with table.   |       |  |\n| user | doc-dir             |         | 32   | /Users/me/.lein/user.clj | ([nsname])             | Prints docs for a given namespace                                                                   |       |  |\n| user | envs                |         | 92   | /Users/me/.lein/user.clj | ([])                   | List of envs and their values                                                                       |       |  |\n| user | help                |         | 1    | NO_SOURCE_PATH           | ([])                   | Prints a list of helpful commands.                                                                  |       |  |\n| user | java-methods        |         | 58   | /Users/me/.lein/user.clj | ([klass])              | List of methods for a java class                                                                    |       |  |\n| user | java-methods-for    |         | 61   | /Users/me/.lein/user.clj | ([obj])                | List of methods for java object                                                                     |       |  |\n| user | jdoc                |         | 38   | /Users/me/.lein/user.clj | ([obj])                | javadoc an object                                                                                   |       |  |\n| user | ns-dynamic-vars     |         | 18   | /Users/me/.lein/user.clj | ([] [nsname])          | dynamic vars for a namespace as determined by *var* convention                                      |       |  |\n| user | properties          |         | 87   | /Users/me/.lein/user.clj | ([])                   | List properties and their values                                                                    |       |  |\n| user | pster               |         | 51   | /Users/me/.lein/user.clj | ([] [err])             | Print full error stack                                                                              |       |  |\n| user | set-signal-handler! |         | 1    | NO_SOURCE_PATH           | ([signal f])           |                                                                                                     | true  |  |\n| user | sourcery            |         | 1    | NO_SOURCE_PATH           | ([name])               |                                                                                                     | true  |  |\n| user | split               |         | 13   | /Users/me/.lein/user.clj | ([f coll])             |                                                                                                     |       |  |\n| user | spy                 |         | 29   | /Users/me/.lein/user.clj | ([arg])                | Simple print debugging                                                                              |       |  |\n| user | sym-to-var          |         | 9    | /Users/me/.lein/user.clj | ([sym])                |                                                                                                     |       |  |\n| user | var-meta            |         | 64   | /Users/me/.lein/user.clj | ([sym])                | Prints meta of a symbol                                                                             |       |  |\n| user | vars-meta           |         | 67   | /Users/me/.lein/user.clj | ([] [nsname])          | Prints public vars for a namespace with its meta info                                               |       |  |\n| user | vars-values         |         | 72   | /Users/me/.lein/user.clj | ([\u0026 options])          | Prints dynamic vars for a namespace mapped to their values                                          |       |  |\n+------+---------------------+---------+------+--------------------------+------------------------+-----------------------------------------------------------------------------------------------------+-------+--+\n```\n\n## TODO\n* Have functions auto-load only if a clojar is present. Will require reading local project.clj and conditional loading of files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fleinfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldwalker%2Fleinfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fleinfiles/lists"}