Skip to content

Commit

Permalink
Change namespace structure
Browse files Browse the repository at this point in the history
  • Loading branch information
b0wter committed Oct 19, 2024
1 parent e510934 commit 49192a9
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/cli/Arguments.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open Argu

Expand Down
4 changes: 2 additions & 2 deletions src/cli/Assets.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open System
open b0wter.Fbrary.Core
open Fbrary.Core

module Assets =
module RatingSymbols =
Expand Down
6 changes: 3 additions & 3 deletions src/cli/Config.fs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open System
open System.Collections.Generic
open Argu
open b0wter.Fbrary.Arguments
open Fbrary.Cli.Arguments
open b0wter.FSharp.Operators
open System.Linq
open b0wter.Fbrary.Core
open Fbrary.Core

module Config =

Expand Down
1 change: 0 additions & 1 deletion src/cli/Fbrary.Cli.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>b0wter.Fbrary</RootNamespace>
<AssemblyName>fbrary</AssemblyName>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/cli/Formatter.fs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open b0wter.Fbrary.Core
open Fbrary.Core

module Formatter =
open b0wter.Fbrary.Assets
open Fbrary.Cli.Assets
open System.Text.RegularExpressions

// If you change the regex you probably need to change `optionalSymbol` as well!
Expand Down
4 changes: 2 additions & 2 deletions src/cli/GlobalConfig.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open System
open b0wter.Fbrary.Core
open Fbrary.Core

module GlobalConfig =

Expand Down
6 changes: 3 additions & 3 deletions src/cli/Library.fs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open System
open FsToolkit.ErrorHandling
open b0wter.FSharp.Collections
open b0wter.Fbrary.Core.Utilities
open b0wter.Fbrary.Core
open Fbrary.Core.Utilities
open Fbrary.Core

module Library =

Expand Down
7 changes: 3 additions & 4 deletions src/cli/Program.fs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

open Argu
open System
open FsToolkit.ErrorHandling
open b0wter.FSharp.Operators
open b0wter.Fbrary
open b0wter.Fbrary.Core.Utilities
open b0wter.Fbrary.Core
open Fbrary.Core.Utilities
open Fbrary.Core
module Program =

let getDirectoryFromArgs (argv: string []) =
Expand Down
2 changes: 1 addition & 1 deletion src/cli/Version.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace b0wter.Fbrary
namespace Fbrary.Cli

module Version =

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Audiobook.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace b0wter.Fbrary.Core
namespace Fbrary.Core

open System
open b0wter.Fbrary.Core.Utilities
open Fbrary.Core.Utilities
open b0wter.FSharp

module Audiobook =
Expand Down
1 change: 0 additions & 1 deletion src/lib/Fbrary.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>net8.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Fbrary.Core</AssemblyName>
<RootNamespace>b0wter.Fbrary.Core</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/IO.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace b0wter.Fbrary.Core
namespace Fbrary.Core

open System
open System.IO
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Metadata.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace b0wter.Fbrary.Core
namespace Fbrary.Core

open System

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Rating.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace b0wter.Fbrary.Core
namespace Fbrary.Core

module Rating =
type Rating = Rating of int
Expand Down
4 changes: 2 additions & 2 deletions src/lib/TagLib.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace b0wter.Fbrary.Core
namespace Fbrary.Core

open b0wter.Fbrary.Core.Metadata
open Fbrary.Core.Metadata
open System
open System.IO
open b0wter.FSharp
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Utilities.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace b0wter.Fbrary.Core
namespace Fbrary.Core

module Utilities =
module Parsers =
Expand Down
1 change: 0 additions & 1 deletion src/tui/Fbrary.Tui.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>b0wter.Fbrary.Tui</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions tests/cli/FormatterTests.fs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace b0wter.Fbrary.Tests
namespace Fbrary.Tests

open System
open FsUnit
open Xunit
open b0wter.Fbrary
open b0wter.Fbrary.Core
open Fbrary.Cli
open Fbrary.Core

module Formatter =

Expand Down
4 changes: 2 additions & 2 deletions tests/cli/IoTests.fs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace b0wter.Fbrary.Tests
namespace Fbrary.Tests

open FsUnit
open Xunit
open b0wter.Fbrary.Core
open Fbrary.Core

module IO =

Expand Down
6 changes: 3 additions & 3 deletions tests/cli/ProgramTests.fs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace FbraryTests
namespace Fbrary.Tests

open FsUnit.Xunit
open Xunit
open b0wter.Fbrary.GlobalConfig
open b0wter.Fbrary
open Fbrary.Cli.GlobalConfig
open Fbrary.Cli

module ProgramTests =

Expand Down

0 comments on commit 49192a9

Please sign in to comment.