Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive Mode Variables #10

Closed
TheFox opened this issue Feb 14, 2017 · 0 comments
Closed

Interactive Mode Variables #10

TheFox opened this issue Feb 14, 2017 · 0 comments
Labels
Milestone

Comments

@TheFox
Copy link
Owner

TheFox commented Feb 14, 2017

When --interactive option is used, parse %d from printf or %var%.

For example. To use the following in a template script

$ ./bin/wallet add --title 'Income tax %d/Q%d' --interactive

and set the values on interactive input when Wallet is running.

$ ./bin/wallet add --title 'Income tax %d/Q%d' --interactive
title: [Income tax %d/Q%d] 2017,1

This would set the title to Income tax 2017/Q1. So actually do not set the input as value rather than replace the variables in the template text. Do not limit this to title. Use it for all input fields.

This feature can be used on template scripts that run the wallet add command with pre-defined texts (for example title, comment, revenue, expense, etc).

@TheFox TheFox added the feature label Feb 14, 2017
@TheFox TheFox added this to the v1.0 milestone Feb 14, 2017
@TheFox TheFox closed this as completed in 70b2130 Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant