Closed laxect closed 3 years ago
might dantalian gen-config --keyword world --path examples
be better?
might
dantalian gen-config --keyword world --path examples
be better?
Because of Bgm search subcommand works like dantalian bgm search hello world
, I think gen-config should have the same interface.
What is the "gen-config", just generate a config file?
What is the "gen-config", just generate a config file?
Yes.
What is the "gen-config", just generate a config file?
Yes.
If a user uses the correct filename pattern, there is no need to generate config manually. The config file will be generated automatically.
What is the "gen-config", just generate a config file?
Yes.
If a user uses the correct filename pattern, there is no need to generate config manually. The config file will be generated automatically.
And this command is use for use have filename/dirname not just as same as bgm.tv.
And this command is use for use have filename/dirname not just as same as bgm.tv.
If the filename/dirname is not use our pattern, the config can't be auto-generated. The user must specify the regex.
And this command is use for use have filename/dirname not just as same as bgm.tv.
If the filename/dirname is not use our pattern, the config can't be auto-generated. The user must specify the regex.
This PR uses the default regex function now. I have thought of ways to generate a regex interactively but I think that can be done in future work.
And this command is use for use have filename/dirname not just as same as bgm.tv.
If the filename/dirname is not use our pattern, the config can't be auto-generated. The user must specify the regex.
This PR uses the default regex function now. I have thought of ways to generate a regex interactively but I think that can be done in future work.
But default regex can't use for files not renamed in our specified way.
Anyway, Providing an interactive method to generate files is an awesome idea.
This PR provides a way to search through bgm api and use the response to construct a dantalian config file.
The new command works like this example.
In this example, dantalian will generate dantalian.toml at examples directory.