Comments (11)
Thanks for the report!
-p
works interactively, and is used as follows:
liquigraph -c /my/changelog.xml -g jdbc:neo4j://my.host:7474 -u myUser -p
- a prompt appears: you must type your password (it remains hidden)
If I understand well, you would like to have a non-interactive password parameter?
from liquigraph.
If so, we could adapt step 1 to also support the following execution:
echo "my_password" | liquigraph -c /my/changelog.xml -g jdbc:neo4j://my.host:7474 -u myUser -p
It would require a tweak to the existing shell script (and possibly Batch one).
And probably something with JCommander too.
What do you think? Would you like to push a change? :-)
from liquigraph.
Yeah - effectively I want to be able to do:
liquigraph -c /my/changelog.xml -g jdbc:neo4j://my.host:7474 -u myUser -p password
Happy to take a look at the code and contribute. I'm an recovering java dev and current go coder - it'll take me a while to set up a java env again :o)
from liquigraph.
Just a JDK 7 and Maven 3.x is enough :-)
Feel free to reach me if you have any questions 👍
from liquigraph.
To get my required functionality is a fairly small easy change.
The issue I raised relates to the (password = true) jcommander annotation on the password field in LiquigraphCli (doc:http://jcommander.org/#Types_of_options). If I remove the (password = true) it connects to neo4j and liquigraph can run in the changeset using:
liquigraph -c /my/changelog.xml -g jdbc:neo4j://my.host:7474 -u myUser -p password
Obviously I don't want to push this in as it would likely break other peoples installations/setups. What would your preferred approach be? New flag?
from liquigraph.
I need to dig a little more into JCommander sources to see if I can get a conditionally interactive parameter. I like the current password behaviour: password remains hidden and out of shell history. But your usecase is also 100% legit and we need a configurable behaviour for that.
from liquigraph.
Good news! I found a way that requires no code change and does not compromise your password.
Just run:
$> touch my_password.txt
# write your password there + chmod appropriately ;-)
$> liquigraph -c /path/to/changelog.xml -g jdbc:neo4j://localhost:7474 -u my_user -p < my_password.txt
Would you like to send a Pull Request (see gh-pages
branch) to update the documentation to reflect this?
from liquigraph.
Great. That works. Thanks for that.
I don't mind changing the documentation but I can't see it :D apologies it's probably in a really obvious place.
from liquigraph.
The online documentation is here.
The documentation sources are here.
You can simply open the local index.html
to see your changes.
from liquigraph.
Cheers. Done. Let me know if there's any issues.
I'd be happy to include information on how we dockerized liquigraph too if wanted.
from liquigraph.
Would you mind sending me a Twitter DM? I'm curious about what you did :-)
from liquigraph.
Related Issues (20)
- [4.x] Change JDBC driver dependency scope to runtime
- [3.x] Change JDBC driver dependency scope to runtime
- [2.x] Change JDBC driver dependency scope to runtime
- CLI: Only one version deployed HOT 2
- [4.x] Liquigraph changeset execution triggers "Tried to execute Schema modification after executing Query" HOT 8
- Liquigraph does not seem to work with SDN/OGM HOT 5
- Maven wrapper HOT 1
- [4.x] Add a simple Spring Data Neo4j example
- [3.x] Add a simple Spring Data Neo4j example
- [2.x] Add a simple Spring Data Neo4j example
- "Failed to remove __LiquigraphLock. Trying again with new connection" error HOT 8
- Improve transaction handling for better robustness in error cases HOT 11
- Liquigraph 4.0.3 Homebrew update failure HOT 1
- Parameterized query and read from data file HOT 1
- Postgres and neo4j migration queries in the same Spring Boot project HOT 7
- 301 moved permanently error HOT 4
- Expose a command to migrate Liquigraph XML to Liquibase XML HOT 1
- Automatically convert Liquigraph's persisted history graph to Liquibase history graph structure HOT 1
- Support transition path to Liquibase Neo4j plugin HOT 1
- [3.x] Add migration utility to Liquibase HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liquigraph.