init

Function init 

Source
pub fn init(_opts: InitOptions) -> Result<(), Box<dyn Error>>
Expand description

Initialize an Oseda project with the provided options

This command will:

  • Run npm init
  • Install required dependencies (Vite, Reveal.js, etc)
  • Write config and boilerplate files

§Arguments

  • _opts - command-line options (this is unused rn, used later I hope)

§Returns

  • Ok(()) if project initialization is suceeded
  • Err if any step (npm, file write, config generation etc) fails