23 app.window = ui.window(
27 on_resize: fn (width int, height int, win &ui.Window){
35 width: int(ui.stretch)
48 text: "Please enter URL"
67 text: "Please enter the title"
92 onclick: fn(_ voidptr, b &ui.Button){
99 text: 'Create new article'
102 onclick: fn(_ voidptr, b &ui.Button){
118 eprintln("まだ実装されてないンゴ")
122 fn cmd_available(c string) bool{
130 result := os.execute("${cmd} \"${c}\"")
131 return result.exit_code == 0
134 fn check_system_env(){
136 if ! cmd_available("hugo"){
137 eprintln("Hugo command was not found on this computer.")