Skip to content

Commit

Permalink
chores: add licence to golang files
Browse files Browse the repository at this point in the history
  • Loading branch information
slashformotion committed Jul 6, 2022
1 parent eb3f1df commit e3f99ec
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/edit.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package cmd

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"os"
"os/exec"
Expand Down
10 changes: 10 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package cmd

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"errors"
"fmt"
Expand Down
10 changes: 10 additions & 0 deletions internal/players/mpv.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package players

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"fmt"
"os/exec"
Expand Down
10 changes: 10 additions & 0 deletions internal/players/player.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package players

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"errors"
)
Expand Down
10 changes: 10 additions & 0 deletions internal/tui/keys.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package tui

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import "github.com/charmbracelet/bubbles/key"

type KeyMap struct {
Expand Down
10 changes: 10 additions & 0 deletions internal/tui/style.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package tui

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import "github.com/charmbracelet/lipgloss"

var (
Expand Down
10 changes: 10 additions & 0 deletions internal/tui/tui.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package tui

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"fmt"
"os"
Expand Down
10 changes: 10 additions & 0 deletions internal/urls/urls.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package urls

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"os"
"strings"
Expand Down
10 changes: 10 additions & 0 deletions internal/utils/booleanPrompt.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package utils

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"errors"

Expand Down
10 changes: 10 additions & 0 deletions internal/utils/fileutils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package utils

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import (
"errors"
"io/fs"
Expand Down
10 changes: 10 additions & 0 deletions internal/utils/mathutils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package utils

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

func ClampInts(v, min, max int) int {
if v > max {
return max
Expand Down
10 changes: 10 additions & 0 deletions internal/utils/stringutils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package utils

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import "math/rand"

// return a random string of length n
Expand Down

0 comments on commit e3f99ec

Please sign in to comment.