Skip to content

Commit 4185527

Browse files
authored
ui: fix #684 : allow edit for a DAG with . in the name (#767)
1 parent f517ce2 commit 4185527

File tree

140 files changed

+71
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+71
-453
lines changed

.golangci.yml

-9
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ linters-settings:
6767
disabled: false
6868
- name: "enforce-slice-style"
6969
disabled: false
70-
goheader:
71-
values:
72-
const:
73-
AUTHOR: Yota Hamada
74-
regexp:
75-
YEAR: 20\d\d
76-
template: |-
77-
Copyright (C) {{YEAR}} {{ AUTHOR }}
78-
SPDX-License-Identifier: GPL-3.0-or-later
7970

8071
run:
8172
allow-parallel-runners: true

LICENSE.md

+19-2

README.md

+1-1

cmd/cmd_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/dry.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/dry_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/main.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (
@@ -38,7 +35,7 @@ func init() {
3835
rootCmd.PersistentFlags().
3936
StringVar(
4037
&cfgFile, "config", "",
41-
"config file (default is $HOME/.config/dagu/admin.yaml)",
38+
"config file (default is $HOME/.config/dagu/config.yaml)",
4239
)
4340

4441
cobra.OnInitialize(func() {

cmd/restart.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/restart_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/retry.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/retry_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/scheduler.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/scheduler_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/server.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/server_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/setup.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/setup_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/start.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/start_all.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/start_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/status.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/status_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/stop.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/stop_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

cmd/version.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package main
52

63
import (

docs/source/api_token.rst

+1-1

docs/source/auth.rst

+1-1

docs/source/config.rst

+2-2

docs/source/config_remote.rst

+1-1

entrypoint.sh

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env /bin/sh
2-
# Copyright (C) 2024 Yota Hamada
3-
# SPDX-License-Identifier: GPL-3.0-or-later
4-
52

63
echo "Starting entrypoint.sh"
74

internal/agent/agent.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package agent
52

63
import (

internal/agent/agent_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package agent_test
52

63
import (

internal/agent/reporter.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package agent
52

63
import (

internal/agent/reporter_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package agent
52

63
import (

internal/build/build.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package build
52

63
import "strings"

internal/client/client.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package client
52

63
import (

internal/client/client_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package client_test
52

63
import (

internal/client/interface.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package client
52

63
import (

internal/cmdutil/cmdutil.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package cmdutil
52

63
import (

internal/cmdutil/cmdutil_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package cmdutil
52

63
import (

internal/config/config.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package config
52

63
import (

internal/config/config_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2024 Yota Hamada
2-
// SPDX-License-Identifier: GPL-3.0-or-later
3-
41
package config
52

63
import (
@@ -162,7 +159,7 @@ func TestConfigLoader_Load(t *testing.T) {
162159
}
163160

164161
// Create test config file
165-
configFile := filepath.Join(configDir, "admin.yaml")
162+
configFile := filepath.Join(configDir, "config.yaml")
166163
testConfig := []byte(`
167164
host: "127.0.0.1"
168165
port: 8080

0 commit comments

Comments
 (0)