Skip to content

Releases: phpcr/phpcr-shell

Beta 4

06 Nov 09:47
Compare
Choose a tag to compare
Beta 4 Pre-release
Pre-release

Bug fixes

  • [query] Enforce termination of queries with ";": fixes #162
  • [node:list] Single references not showing path
  • [node:edit] Multivalue references encoded as arrays when editing
  • [node:edit] Fixed undefined variable
  • [version] Versioning commands can use relative paths
  • [node:property:show] Text fields are truncated
  • [profile] Workspace given from CLI does not override profile workspace
  • [command] Removed node:definition command: Jackalope now supports this, and
    this command would never have worked, see: #172

Beta 3

02 May 11:28
Compare
Choose a tag to compare
Beta 3 Pre-release
Pre-release

Features

  • [profile:show] Added command to display current profile
  • [query:update] Introduced expr() function to allow setting poperty values using expression language.
  • [node:list] Sort properties by default, added option to specify

Bug fixes

  • [embedded] No exit code returned
  • [profile] Profile configuration overwritten by session parameters
  • [node:list] Incorrect node count

Beta 2

07 Feb 09:24
Compare
Choose a tag to compare
Beta 2 Pre-release
Pre-release

Features

  • [profile:show] Added command to display current profile

Bug fixes

  • [embedded] No exit code returned
  • [profile] Profile configuration overwritten by session parameters
  • [node:list] Incorrect node count

Beta 1

05 Jan 11:53
Compare
Choose a tag to compare
Beta 1 Pre-release
Pre-release

BC Break

  • [DoctrinePhpcrBundle] Shell must now be initiated in a different way in
    embedded mode. The DoctrinePhpcrBundle will need to be updated.
  • [node:shared:remove] Removed this command and integrated it into
    node:remove instead (node:remove . --shared)

Bug fixes

  • [capability] Commands not being disabled based on capability
  • [config] Do not override CLI options with profile options
  • [node:remove] Cannot node:remove by UUID
  • [node:edit] Serialization of single value references doesn't work
  • [file:import] Irregular files are accepted
  • [query] Possible to try and execute query without a query

Enhancements

  • [node:list] Show primary node type and super-types
  • [node:list] Show property length
  • [autocomplete] Autocomplete now includes command names
  • [references] Show UUIDs when listing reference properties
  • [import/export] Renamed session import and export to session:import &

Features

  • [cli] Specify workspace with first argument
  • [config] Added user config for general settings
  • [config] Enable / disable showing execution times and set decimal expansion
  • [global] Refactored to use DI container and various general improvements
  • [node:property:set] Allow setting reference property type by pathsession:export
  • [node:references] Shows the referencing node paths instead of the referrered-to node path(s)
  • [node:remove] Immediately fail when trying to delete a node which has a (hard) referrer
  • [node] Added wilcard support to applicable node commands, including "node:list", "node:remove" and "node:property:show"
  • [query:update] Added APPLY method to queries, permits addition and removal of mixins
  • [transport] Added transport layer for experimental Jackalope FS implementation

Alpha 6

25 Oct 08:22
Compare
Choose a tag to compare
Alpha 6 Pre-release
Pre-release

Features

Bug fixes

  • [mixin] Node mxin remove does not accept a path
  • [node:edit] Cannot edit nodes with multivalue References

Enhancements

  • [deps] The PHPCR implementations have been moved to require-dev
  • [exit] Ask for confirmation before logging out when there are pending changes

Alpha 5

21 Aug 22:15
Compare
Choose a tag to compare
Alpha 5 Pre-release
Pre-release

This release features a new command node:edit which replaces node:property:edit, and enables the edition (or creation) of a complete node.

It also adds a temporary limitation to the UPDATE command when updating multi-value properties. Before this release updating a multivalue property with more than one element would remove all existing elements. Now we only allow updating single-valued multi-value properties until a better solution is implemented.

Features

  • [node:edit] New command node:edit enables editing of entire node
  • [shell] Added "shell:clear" command to support clearing the console output
  • [general] The shell supports being embedded as a dependency

Bug Fixes

  • [query] Disabled updating multivalue properties where properties have more
    than one value with the UPDATE, as currently other items are overwritten and
    data is lost. See: #85
  • [shell] Multivalue (and so multiline) property values are truncated as a single string (#70)

Alpha 4

19 Jul 08:04
Compare
Choose a tag to compare
Alpha 4 Pre-release
Pre-release

Features

  • [node] copy,move and clone - Target paths automatically append basename if target is a node.
  • [query] Always show path next to resultset
  • [node|shell] Most commands which accept a node path can also accept a UUID
  • [node] node:list: Show node primary item value
  • [query] Support for UPDATE queries
  • [query] Support for DELETE queries

Bugs Fixes

  • [args] 28 instances of bad InputArgument constructor fixed
  • [node] node:list Catch exceptions when rendering property rows (e.g. on invalid references)

Alpha 3

09 Jun 15:49
Compare
Choose a tag to compare
Alpha 3 Pre-release
Pre-release

Features

  • [file]: file:import - New command to import files into the repository.
  • [node]: node:list Added --level option to rescursively show children nodes and properties.
  • [node]: node:list Show "unulfilled" property and child node definitions when listing node contents.

Improvements

  • [export]: session:export:view: Added --pretty option to session:export:view command to output formatted XML.
  • [export]: session:export:view: Ask confirmation before overwriting file.
  • [shell]: Autocomplete completes property names in addition to node names in current path.

Bugs

  • [shell]: Aliases do not allow quoted arguments.
  • [shell]: Autocomplete causes segfault.

Alpha 2

16 May 19:17
Compare
Choose a tag to compare
Alpha 2 Pre-release
Pre-release

This release introduces profile support:

Use a profile:

$ phpcrsh --profile myprofile

Create a profile:

$ phpcrsh --transport=doctrine-dbal --db-user=foo --db-pass=bar --phpcr-workspace=baz

Launch profile selector:

$ phpcrsh
No connection parameters, given. Select an existing profile:

  (0) dtlweb
  (1) jr_test
  (2) pocms

Enter profile number:

Pre-Alpha

09 Feb 22:05
Compare
Choose a tag to compare
Pre-Alpha Pre-release
Pre-release

This is an early release of the current master branch as I am going to start working on a more feature complete and tested branch.

I am intending to do a big rewrite in order to fully implement the PHPCR interface: https://github.com/phpcr/phpcr-shell/wiki/Proposed-API

Until then this is already a nice way to browse the repository, but I take no responsibility for any damage that might be caused with destructive commands.

To install:

wget https://github.com/phpcr/phpcr-shell/releases/download/0.1.0/phpcr.phar
sudo mv phpcr.phar /usr/local/bin/phpcr
sudo chmod a+x /usr/local/bin/phpcr

To connect to doctrine dbal:

$ phpcr --transport=doctrine-dbal --db-name=yourdbname

or with jackrabbit

$ phpcr --transport=jackrabbit