package referencelibrary.ui.command;

import referencelibrary.App;
import referencelibrary.io.IO;

/**
 * Created by petri on 16.4.2016.
 */
public class GenerateBibTexCommand extends Command {

    public GenerateBibTexCommand(App app, IO io) {
        super(app, io);
    }

    @Override
    public void execute() {
        io.print("\nGenerating bibTex -file");
        String filename = io.readLine("Please insert filename:");
        app.generateBixTexFile(filename);

        io.print("Generating done!\n");
    }
}

@@ -188,16 +188,78 @@
 mand %7B%0A%0A
+    private static final String BIBTEX_FILE_ENDING = %22.bib%22;%0A%0A
     publ
@@ -526,16 +526,35 @@
 filename
++BIBTEX_FILE_ENDING
 );%0A%0A    

Add .bib ending to generated files